[30116] Error loading Python lib '/tmp/_MEIlvdUu6/libpython3.8.so.1.0': dlopen: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/_MEIlvdUu6/libpython3.8.so.1.0)
1 cd到指定路径
cd /usr/local
2 下载
wget http://ftp.gnu.org/gnu/glibc/glibc-2.29.tar.gz
3 超级管理员模式
sudo su
4 解压
tar -zxvf glibc-2.29.tar.gz
5.安装 gawk
sudo apt-get install gawk
sudo glibc-2.29/configure --prefix=/usr/local/glibc
sudo pat install bison
再运行:
sudo glibc-2.29/configure --prefix=/usr/local/glibc
6.编译
sudo make -j8
sudo make install
Warning: ignoring configuration file that cannot be opened: /usr/local/glibc/etc/ld.so.conf: No such file or directory
不用担心,继续向后操作即可;
7.建立软连接
ll查看下libm.so.6连接情况
cd /lib/x86_64-linux-gnu
8.建立强制软连接
ln -s /usr/local/glibc/lib/libm-2.29.so libm.so.6
//会报错 ln: failed to create symbolic link ‘libm.so.6’: File exists
//此时需要强连
sudo ln -sf /usr/local/glibc/lib/libm-2.29.so libm.so.6
9.查看结果
strings /lib/x86_64-linux-gnu/libm.so.6 | grep GLIBC_