如何将glibc从CentOS的2.12版本升级到2.14版本?

时间:2022-09-03 04:50:56

I do not know how to upgrade glibc from version 2.12 to 2.14 on CentOS 6.3. I need your help.

我不知道如何在CentOS 6.3上将glibc从2.12版本升级到2.14版本。我需要你的帮助。

2 个解决方案

#1


37  

You cannot update glibc on Centos 6 safely. However you can install 2.14 alongside 2.12 easily, then use it to compile projects etc. Here is how:

无法安全地更新Centos 6上的glibc。不过,您可以轻松地安装2.14和2.12,然后使用它编译项目等。

  1. mkdir ~/glibc_install; cd ~/glibc_install
  2. mkdir ~ / glibc_install;cd ~ / glibc_install
  3. wget http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gz
  4. wget http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gz
  5. tar zxvf glibc-2.14.tar.gz
  6. 焦油zxvf glibc-2.14.tar.gz
  7. cd glibc-2.14
  8. cd glibc - 2.14
  9. mkdir build
  10. mkdir构建
  11. cd build
  12. cd构建
  13. ../configure --prefix=/opt/glibc-2.14
  14. . ./ configure——prefix = / opt / glibc - 2.14
  15. make -j4
  16. 让阁下
  17. sudo make install
  18. sudo make install
  19. export LD_LIBRARY_PATH=/opt/glibc-2.14/lib
  20. 出口LD_LIBRARY_PATH = / opt / glibc - 2.14 / lib

#2


2  

To update glibc please use the below command

要更新glibc,请使用以下命令

yum -y update glibc

#1


37  

You cannot update glibc on Centos 6 safely. However you can install 2.14 alongside 2.12 easily, then use it to compile projects etc. Here is how:

无法安全地更新Centos 6上的glibc。不过,您可以轻松地安装2.14和2.12,然后使用它编译项目等。

  1. mkdir ~/glibc_install; cd ~/glibc_install
  2. mkdir ~ / glibc_install;cd ~ / glibc_install
  3. wget http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gz
  4. wget http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gz
  5. tar zxvf glibc-2.14.tar.gz
  6. 焦油zxvf glibc-2.14.tar.gz
  7. cd glibc-2.14
  8. cd glibc - 2.14
  9. mkdir build
  10. mkdir构建
  11. cd build
  12. cd构建
  13. ../configure --prefix=/opt/glibc-2.14
  14. . ./ configure——prefix = / opt / glibc - 2.14
  15. make -j4
  16. 让阁下
  17. sudo make install
  18. sudo make install
  19. export LD_LIBRARY_PATH=/opt/glibc-2.14/lib
  20. 出口LD_LIBRARY_PATH = / opt / glibc - 2.14 / lib

#2


2  

To update glibc please use the below command

要更新glibc,请使用以下命令

yum -y update glibc