Chinaunix首页 | 论坛 | 博客
  • 博客访问: 502769
  • 博文数量: 704
  • 博客积分: 39800
  • 博客等级: 大将
  • 技术积分: 4950
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-15 13:32
文章分类

全部博文(704)

文章存档

2011年(1)

2008年(703)

我的朋友

分类:

2008-10-15 13:40:25

现在好多人都用起了centos5,但有些特殊要求还必须安装mysql4.0.27的数据库,在第一次安装过程中还遇到了不少问题,特把这次安装过程记录下来以供遇到类似问题的朋友参考

首先mysql4.0.27.tar.gz,解压进入目录编译

编译时出现错误:checking “LinuxThreads”… “Not found”

这是由于nptl与threads的分别造成的,可以在/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 再一次进行编译。

【责编:Zenghui】

--------------------next---------------------

阅读(283) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~