因为公司的mysql有mysql4.0.27和mysql5.* 的不同版本!测试了下从mysql4升级到mysql5没那么容易(尽管可以实现,但蛮费劲)
想重新安装一个mysql4.0.27备份机器,以备不时之需!
但在linux安装时configure时却失败提示:
checking for int8... no
checking "LinuxThreads"... "Not found"
configure: error: This is a linux system and Linuxthreads was not
found. On linux Linuxthreads should be used. Please install Linuxthreads
(or a new glibc) and try again. See the Installation chapter in the
Reference Manual for more information.
原因:新内核使用了NTPL这种先进的线程处理方式,
解决方法:
root@www:/db/mysql-4.0.26# cp /usr/include/pthread.h /usr/include/pthread.h.bak
root@www:/db/mysql-4.0.26# echo '/* Linuxthreads */' >> /usr/include/pthread.h
然后就可以configure,make,make install了。
网上还提到一直mid-thread的方法,尽管可以configure过去,但make时出错!
阅读(2035) | 评论(0) | 转发(0) |