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

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-20
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-02
  • 2022-12-23
  • 2022-01-02
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
相关资源
相似解决方案