tar glibc-2.31.tar.gz cd glibc-2.31 mkdir build cd build
../configure --prefix=/usr/local/glibc-2.31 --with-headers=/usr/include make -j4 make install
看看现在libc.so.6在哪个位置,然后修改软链接(慎用)
ln -s /usr/local/glibc-2.14/lib/libc-2.14.so /lib64/libc.so.6
//添加环境变量 vim ~/.bash_profile //在文件里加入这一行,保存退出 export LD_LIBRARY_PATH = $LD_LIBRARY_PATH:/usr/local/glibc-2.31/lib
//使之生效
source ~/.bash_profile