Kernel2.6编译mysql3的问题


前些天帮个朋友重装了个系统——Centos5.1下的LAMP。由于程序限制,必须在选择mysql3的数据库。

按照常理操作:

#cd /mysql3XXX

#./configure –prefix=/usr/local/mysql3

出现如下错误:This is a linux system and Linuxthreads was not found

系统中没有找到linux线程——比较搞笑,没有线程,那系统是怎么起来的?

分析下来,这是由于mysql使用了较老的thread库,针对于kernel2.4的mysql3得不到支持。

#echo >> /usr/include/pthread.h

#./configure –with-pthread –with-named-thread-lib=-lpthread  –prefix=/usr/local/mysql3

重新编译后搞定!

 

,

  1. No comments yet.
(will not be published)