/lib64/libc.so.6: version `GLIBC_2.18‘ not found (required by /lib64/libstdc++.so.6)
写在前面本文属于step by step类型,请务必注意环境,本文无法保证在其他linux发行版上的可行性,也无法保证在CentOS其他版本上的可行性,如果不是CentOS7系统,本文升级办法仅供参考,请谨慎对待!彻底解决 "/lib64/libc.so.6: version `GLIBC_2.18' not found (required by /lib64/libstdc++.so.6)" 的
有两个错误。
1.undefined reference to ... @GLIBCXX_3.4.22
export LD_LIBRARY_PATH=/usr/lib64:$LD_LIBRARY_PATH
2./lib64/libc.so.6: version `GLIBC_2.18' not found (required by /lib64/libstdc++.so.6)
curl -O 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/
sudo ln -s /usr/bin/_mv /usr/bin/mv
../configure --prefix=/usr
make -j2
sudo make install
3.E build: ImportError: libmvec.so.1: cannot open shared object file: No such file or directory
libmvec.so.1在glibc-2.28-164.el8.x86_64.rpm中,是软连接
rpm2cpio glibc-2.28-164.el8.x86_64.rpm | cpio -div
sudo ln -s libmvec-2.28.so libmvec.so.1
export LD_LIBRARY_PATH=/usr/lib64:$LD_LIBRARY_PATH
4.*** These critical programs are missing or too old: make *** Check the INSTALL file for required versions.
make -v 查看make版本
更多推荐
所有评论(0)