/lib64/libc.so.6: version `GLIBC_2.18‘ not found (required by /lib64/libstdc++.so.6)
原因就是,libc.so.6里面缺乏 GLIBC_2.18造成的。随便找一个目录,依次输入以下命令,即可。
·
原因就是,libc.so.6里面缺乏 GLIBC_2.18造成的。
可以先用strings命令查看下系统中的GLIBC版本:
strings /lib64/libc.so.6 | grep GLIBC
随便找一个目录,依次输入以下命令,即可
wget http://ftp.gnu.org/gnu/glibc/glibc-2.18.tar.gz
tar zxf glibc-2.18.tar.gz
cd glibc-2.18/
mkdir build
cd build/
../configure --prefix=/usr
make -j2
make install
问题:
configure: WARNING:
*** These auxiliary programs are missing or incompatible versions: makeinfo autoconf
*** some features will be disabled.
*** Check the INSTALL file for required versions.
checking LD_LIBRARY_PATH variable… contains current directory
configure: error:
*** LD_LIBRARY_PATH shouldn’t contain the current directory when
*** building glibc. Please change the environment variable
*** and run configure again.
先看下LD_LIBRARY_PATH 的值:
echo $LD_LIBRARY_PATH
有值则清空
export LD_LIBRARY_PATH=
再次执行:
../configure --prefix=/usr
结果:
[root@localhost bin]# strings /lib64/libc.so.6 | grep GLIBC
GLIBC_2.2.5
GLIBC_2.2.6
GLIBC_2.3
GLIBC_2.3.2
GLIBC_2.3.3
GLIBC_2.3.4
GLIBC_2.4
GLIBC_2.5
GLIBC_2.6
GLIBC_2.7
GLIBC_2.8
GLIBC_2.9
GLIBC_2.10
GLIBC_2.11
GLIBC_2.12
GLIBC_2.13
GLIBC_2.14
GLIBC_2.15
GLIBC_2.16
GLIBC_2.17
GLIBC_2.18
更多推荐
所有评论(0)