ubuntu编译mysql解决方法


<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 should be used. Please install Linuxthreads

(or a new glibc) and try again

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

(注意上面的ERROR<4>可以看出系统缺少线程库

没有线程,Linux当然不行,既然没有linuxthread那用什么代替呢?

是新型的NPTL,因为NPTL(native posix thread library)与 LinuxThreads 相比,NPTL 具有更多 的优点,只不过我们这里先不讨论他的优点。

相关内容