How to compile mysql in ubuntu

Source: Internet
Author: User

<1>: ERROR: checking for C compiler default output... configure: error:
C compiler cannot create executables

$ Sudo apt-get install libc6-dev

<2>: ERROR: configure: error: C ++ preprocessor "/lib/cpp" fails sanity check

$ Sudo apt-get install cpp g ++

<3>: ERROR: checking for termcap functions library... configure: error:
No curses/termcap library found

$ Sudo apt-get install termcap-compat

$ Sudo apt-get install gcc cpp g ++ libncurses5-dev

$ Sudo apt-get install make autoconf automake libtool

<4>: 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

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

(Note that the above ERROR <4> shows that the system lacks a thread library.

There is no thread. Of course Linux doesn't work. Since there is no linuxthread, what should I replace it?

NPTL is a new NPTL, because NPTL (native posix thread library) has more advantages than LinuxThreads, but we will not discuss its advantages here.

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.