网站首页 | 网站地图
网站制作爱好者
网络编程 | 数据教程 | 网页制作 | 图形图象 | 冲浪宝典 | 邮件工具 | 软件下载 | 网页浏览 |  QQ教程 
操作系统 | 办公软件 | 软件教学 | 站长之家 | 网络安全 | 邮件系统 | 认证考试 | 组网技术 | 通信技术
网站首页 -> 操作系统 -> Linux
 
文章搜索
操作系统分类
Windows 2003
Windows 2008
Windows Vista
Windows XP
Windows 2000
Linux
注册表
FreeBSD
Solaris
经验技巧
Windows 7
CentOS编译Mysql 4.0.27数据库问题解决

文章类别:Linux | 发表日期:2008-5-17

 

现在好多人都用起了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 再一次进行编译。

上一篇:红帽Linux推动JBoss再建中间件产业里程碑 人气:508
下一篇:智能手机平台竞争暗潮汹涌 Linux机遇空前 人气:389
点击此处浏览全部CentOS的内容
 

Copyright© 2005-2008 网站制作爱好者 www.DevDao.com All rights reserved

Valid CSS!