日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

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

發布時間:2025/5/22 数据库 23 豆豆
生活随笔 收集整理的這篇文章主要介紹了 编译mysql4.0时候出现错误提示checking LinuxThreads... Not found 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
編譯mysql4.0時候出現錯誤提示checking "LinuxThreads"... "Not found" 2009-06-30 18:25
解壓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?

轉載于:https://www.cnblogs.com/ylqmf/archive/2012/02/20/2359422.html

總結

以上是生活随笔為你收集整理的编译mysql4.0时候出现错误提示checking LinuxThreads... Not found的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。