CentOS编译Mysql 4.0.27数据库问题解决
点击次数:28 次 发布日期:2008-11-22 09:03:03 作者:源代码网
|
源代码网整理以下 现在好多人都用起了centos5,但有些特殊要求还必须安装mysql4.0.27的数据库,在第一次安装过程中还遇到了不少问题,特把这次安装过程记录下来以供遇到类似问题的朋友参考 源代码网整理以下首先下载mysql4.0.27.tar.gz,解压进入目录编译 源代码网整理以下编译时出现错误:checking “LinuxThreads”… “Not found” 源代码网整理以下这是由于nptl与linuxthreads的分别造成的,可以在/usr/include/pthread.h中增加 “/* Linuxthreads */”解决这个问题 源代码网整理以下echo ‘/* Linuxthreads */’ >> /usr/include/pthread.h 源代码网整理以下编译时加入 –with-pthread 及 –with-named-thread-lib: 源代码网整理以下重新编译再次出错:configure: error: No curses/termcap library found 源代码网整理以下这是因为没有安装ncurses,接下来先安装它 源代码网整理以下yum install ncurses-devel 源代码网整理以下下来继续编译,编译的时候又出现了错误: cannot find -lreadline 源代码网整理以下这个错误是由于没有readline库文件造成的错误,安装readline库文件 源代码网整理以下yum install readline-devel 源代码网整理以下./configure –with-pthread –with-named-thread-lib=-lpthread 再一次进行编译。 源代码网供稿. |
