0


linux升级glibc-2.28

1.准备工作

1.1升级gcc到gcc8

# 安装devtoolset-8-gccyum install centos-release-sclyum install devtoolset-8scl enable devtoolset-8 -- bash# 启用工具source /opt/rh/devtoolset-8/enable # 安装GCC-8yum install -y devtoolset-8-gcc devtoolset-8-gcc-c++ devtoolset-8-binutils# 设置环境变量echo"source /opt/rh/devtoolset-8/enable">> /etc/profilesource /etc/profile

1.2升级make到4.0以上版本

wget http://mirrors.ustc.edu.cn/gnu/make/make-4.0.tar.gztar xf make-4.0.tar.gz cd make-4.0/./configure make&makeinstallmv /usr/bin/make /usr/bin/make.bakln -s /usr/local/bin/make /usr/bin/makemake -v

1.3 安装bison

yum installbison

2.编译

2.1下载并解压

# 下载并解压安装包$ wget https://ftp.gnu.org/gnu/glibc/glibc-2.28.tar.gz$ tar -xzvf glibc-2.28.tar.gz$ cd glibc-2.28# 创建临时文件$ mkdir build && cd build

2.2配置

# 配置环境 ../configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin

2.3 编译和安装

make&makeinstallstrings /lib64/libc.so.6 |grep GLIBC

标签: linux 运维 c++

本文转载自: https://blog.csdn.net/shangjg03/article/details/133172403
版权归原作者 shangjg3 所有, 如有侵权,请联系我们删除。

“linux升级glibc-2.28”的评论:

还没有评论