When compiling mysql4.0, an error message is displayed: checking "linuxthreads"... "not found"
Decompress mysql4.0.26 Root @ www:/DB # tar zxvf mysql-4.0.26.tar.gz Back up the data directory of mysql5 Root @ www:/DB # tar czvf mysql5.data.tar.gz mysql5 Compile Root @ www:/DB # cd mysql-4.0.26 Root @ www:/DB/mysql-4.0.26 #./configure -- prefix =/DB/mysql4 Last tip: Checking "linuxthreads"... "not found" Configure: Error: This is a Linux system and linuxthreads was not Found. On Linux linuxthreads shocould be used. Please install linuxthreads (Or a new glibc) and try again. See the installation chapter in Reference manual for more information. Why is there no linuxthreads? View Root @ www:/DB/mysql-4.0.26 # gcc-V Using built-in specs. Target: i486-linux-gnu Configured :.. /src/configure-V -- enable-languages ages = 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) Maybe the reason why the GCC version is too new? Check the Internet because the new kernel uses the advanced thread processing method ntpl, so it is like this: 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 Then compile and add the dot Parameter 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 It is displayed as found in the linuxthreads detection area, but it stops later, 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 It seems that you want to installNcurses-devel |