mysql4.0错误_编译mysql4.0时候出现错误提示checking "LinuxThreads"... "Not found"

解压mysql4.0.26

root@www:/db# tar zxvf mysql-4.0.26.tar.gz

备份mysql5的数据目录

root@www:/db# tar czvf mysql5.data.tar.gz mysql5

编译

root@www:/db# cd mysql-4.0.26

root@www:/db/mysql-4.0.26# ./configure --prefix=/db/mysql4

最后提示:

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.

怎么会没有Linuxthreads?查看

root@www:/db/mysql-4.0.26# gcc -v

Using built-in specs.

Target: i486-linux-gnu

Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --

with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1

--enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486-linux-gnu

Thread model: posix

gcc version 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)

也许是gcc版本太新的原因?上网一查,是因为新内核使用了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

然后编译,并且加了点参数

root@www:/db/mysql-4.0.26# ./configure --prefix=/db/mysql4 --with-unix-socket-path=/db/mysql4/mysql.sock --with-tcp-port=3304

--with-low-memory

在检测Linuxthreads地方显示为Found,但后来还是停下了,

checking whether signal handlers are of type void... yes

checking for tgetent in -lncurses... no

checking for tgetent in -lcurses... no

checking for tgetent in -ltermcap... no

checking for termcap functions library... configure: error: No curses/termcap li

brary found

看来要装

ncurses-devel

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值