发新话题
打印

centos7安装glibc-2.29

centos7安装glibc-2.29

安装依赖:

yum install -y bzip2 python3 bison

安装make
wget http://ftp.gnu.org/gnu/make/make-4.2.1.tar.bz2
tar -zxvf make-4.2.1.tar.bz2
cd make-4.2.1
./configure
make
sudo make install
sudo ln -s -f /usr/local/bin/make /usr/bin/make

安装gcc
yum install centos-release-scl scl-utils-build
yum install -y devtoolset-8-toolchain
scl enable devtoolset-8 bash
gcc --version

安装glibc
wget http://ftp.gnu.org/gnu/glibc/glibc-2.29.tar.gz
tar xvf glibc-2.29.tar.gz
cd glibc-2.29
mkdir build
cd build
../configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin --enable-obsolete-nsl
make  

vi ../scripts/test-installation.pl  128行左右 增加行 && $name ne "nss_test2" 忽略对nss_test2的检查(主流做法,据说不影响安装及使用)

make install

检查:
strings /lib64/libc.so.6 |grep GLIBC_2.29
显示:
GLIBC_2.29
GLIBC_2.29



参考:
https://www.zoleet.com/details/308.html
https://garlicspace.com/2020/07/18/centos7-%E5%8D%87%E7%BA%A7-glibc-gcc/
https://www.cnblogs.com/KBin/articles/Upgrade-GLIBC-for-Linux.html
https://cloud-atlas.readthedocs.io/zh-cn/latest/linux/redhat_linux/centos/upgrade_centos_7_to_8.html

debian10升级debian11
debian10 glibc是2.28,debian11 glibc是2.31
http://trustcomputing.com.cn/bbs/viewthread.php?tid=2037

[ 本帖最后由 linda 于 2024-2-4 11:24 编辑 ]

TOP

发新话题