python3.7错误ImportError: /lib64/libc.so.6: version `GLIBC_2.18' not found

2022-10-27 14:40:33 浏览数 (1)

编译安装glibc

代码语言:javascript复制
wget http://ftp.gnu.org/gnu/glibc/glibc-2.18.tar.gz
tar xf glibc-2.18.tar.gz
cd glibc-2.18
mkdir build
cd build
../configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin
make
make install

验证

代码语言:javascript复制
strings /lib64/libc.so.6|grep GLIBC

查看库文件

代码语言:javascript复制
ll /lib64/libc*

0 人点赞