Solve the problem of Mysql4.0.27 database compilation by CentOS

Source: Internet
Author: User
Decompress the package to compile the directory.  

Many people now use centos5, but some special requirements also require the installation of mysql4.0.27 databases. many problems have been encountered during the first installation, this installation process is recorded for your reference.

First Download mysql4.0.27.tar.gz, decompress it to the directory compilation

An error occurred during compilation: checking "LinuxThreads "... "Not found"

This is caused by nptl and linuxthreads respectively. you can add "/* Linuxthreads */" in/usr/include/pthread. h to solve this problem.

Echo '/* Linuxthreads */'>/usr/include/pthread. h

Added during compilation? With-pthread and? With-named-thread-lib:

Re-compilation error: configure: error: No curses/termcap library found

This is because ncurses is not installed. install it first.

Yum install ncurses-devel

Continue compilation, and an error occurs during compilation: cannot find-lreadline

This error is caused by the absence of readline library files.

Yum install readline-devel

./Configure? With-pthread? With-named-thread-lib =-lpthread is compiled again.

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.