onfigure: error: installation or configuration problem: C++ compiler cannot create executables.
你需要安装GLIBC之类的东西,如果用的是Debian系统可以用
apt-get install build-essential 来安装
另外检查 和升级gcc $cat /proc/version
还需要检查C语言库,首先,搜索到库文件,在Ubuntu和Debian系列的Linux系统中,我用这个命令就可以:
apt-cache search GNU c library
此命令输出部分如下:
glibc-doc-reference - GNU C Library: Documentation
libc6 - GNU C Library: Shared libraries
libc6-amd64 - GNU C Library: 64bit Shared libraries for AMD64
libc6-dbg - GNU C Library: Libraries with debugging symbols
libc6-dev - GNU C Library: Development Libraries and Header Files
libc6-dev-amd64 - GNU C Library: 64bit Development Libraries for AMD64
libc6-i686 - GNU C Library: Shared libraries [i686 optimized]
libc6-pic - GNU C Library: PIC archive library
libc6-prof - GNU C Library: Profiling Libraries
libc6-xen - GNU C Library: Shared libraries [Xen version]
或者你可以搜索libc或glibc。因为我们要编程序,即进行开发,所以我们得安装libc6-dev这个软件包。用这个命令查看一下这个软件包的具体信息:
apt-cache show libc6-dev
此命令输出的部分如下:Description: GNU C Library: Development Libraries and Header Files
Contains the symlinks, headers, and object files needed to compile
and link programs which use the standard C library.
然后就可以运行命令安装此软件包:
apt-get install libc6-dev
安装完成后可以查看一下这个软件包提供了一些什么,用下面这个命令:
dpkg -L libc6-dev