日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

glibc升级_CentOS7下升级GLIBC2.31

發(fā)布時(shí)間:2023/12/18 编程问答 30 豆豆
生活随笔 收集整理的這篇文章主要介紹了 glibc升级_CentOS7下升级GLIBC2.31 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

1、當(dāng)前系統(tǒng)版本及GLIBC版本信息

[root@localhost?~]#?cat?/etc/redhat-release?
CentOS?Linux?release?7.6.1810?(Core)?
[root@localhost?~]#?uname?-r
3.10.0-957.el7.x86_64
[root@localhost?~]#??strings?/lib64/libc.so.6?|?grep?GLIBC
[root@localhost?~]#?ll?/lib64/libc.so*

2、源碼編譯升級gcc9.3.0

1)編譯升級gcc

wget?https://mirrors.aliyun.com/gnu/gcc/gcc-9.3.0/gcc-9.3.0.tar.gz
cp?gcc-9.3.0.tar.gz?/optcd?/opt
tar?-zxf?gcc-9.3.0.tar.gzcd?gcc-9.3.0/
?./contrib/download_prerequisites建議先手動下載依賴的這四個包,下載地址ftp://gcc.gnu.org/pub/gcc/infrastructure/
cat?/proc/cpuinfo|?grep?"processor"|?wc?-lmkdir?buildcd?build
../configure?--enable-checking=release?--enable-language=c,c++?--disable-multilib?--prefix=/usr
make?-j6
make?install

2)升級成功后gcc版本檢查

cd?/usr/lib64
ll?libstdc++*
gcc?-v
gcc?--version

3、源碼編譯升級make

1)編譯升級make

wget?https://mirrors.aliyun.com/gnu/make/make-4.3.tar.gz
cp?make-4.3.tar.gz?/optcd?/opt/
tar?-zxf?make-4.3.tar.gz?cd?make-4.3/
mkdir?buildcd?build
../configure?--prefix=/usr?&&?make?&&?make?install

2)檢查升級后的make版本信息

make?-v

4、升級glibc-2.31

cd?/opt
wget?https://mirrors.aliyun.com/gnu/glibc/glibc-2.31.tar.gz
tar?-zxf?glibc-2.31.tar.gzcd?glibc-2.31/
cat?INSTALL?|?grep?-E?"newer|later"
mkdir?buildcd?build
../configure??--prefix=/usr?--disable-profile?--enable-add-ons?--with-headers=/usr/include?--with-binutils=/usr/bin?--disable-sanity-checks?--disable-werror
yum?install?python3
make?-j6
make?install
make?localedata/install-locales

報(bào)錯是由于python版本較低

下面yum install python3解決后重新配置并make編譯安裝

../configure? --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin --disable-sanity-checks --disable-werror

make -j6

make install

最后驗(yàn)證升級后的glibc版本

strings?/lib64/libc.so.6?|?grep?GLIBC
ll?/lib64/libc.so*

總結(jié)

以上是生活随笔為你收集整理的glibc升级_CentOS7下升级GLIBC2.31的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。