When compiling mysql4.0, an error message is displayed: checking "linuxthreads "... "Not found"

Source: Internet
Author: User
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 install

Ncurses-devel

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.