CentOS7下升级GLIBC2.31 |
您所在的位置:网站首页 › 疤痕憩室影响要二胎吗 › CentOS7下升级GLIBC2.31 |
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 /opt cd /opt tar -zxf gcc-9.3.0.tar.gz cd gcc-9.3.0/ ./contrib/download_prerequisites 建议先手动下载依赖的这四个包,下载地址ftp://gcc.gnu.org/pub/gcc/infrastructure/ cat /proc/cpuinfo| grep "processor"| wc -l mkdir build cd build ../configure --enable-checking=release --enable-language=c,c++ --disable-multilib --prefix=/usr make -j6 make install2)升级成功后gcc版本检查 cd /usr/lib64 ll libstdc++* gcc -v gcc --version1)编译升级make wget https://mirrors.aliyun.com/gnu/make/make-4.3.tar.gz cp make-4.3.tar.gz /opt cd /opt/ tar -zxf make-4.3.tar.gz cd make-4.3/ mkdir build cd build ../configure --prefix=/usr && make && make install2)检查升级后的make版本信息 make -v报错是由于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最后验证升级后的glibc版本 strings /lib64/libc.so.6 | grep GLIBC ll /lib64/libc.so* |
今日新闻 |
点击排行 |
|
推荐新闻 |
图片新闻 |
|
专题文章 |
CopyRight 2018-2019 实验室设备网 版权所有 win10的实时保护怎么永久关闭 |