赞
踩
- # 安装devtoolset-8-gcc
- yum install centos-release-scl
- yum install devtoolset-8
- scl enable devtoolset-8 -- bash
-
- # 启用工具
- source /opt/rh/devtoolset-8/enable
-
- # 安装GCC-8
- yum install -y devtoolset-8-gcc devtoolset-8-gcc-c++ devtoolset-8-binutils
-
- # 设置环境变量
- echo "source /opt/rh/devtoolset-8/enable" >> /etc/profile
- source /etc/profile
- wget http://mirrors.ustc.edu.cn/gnu/make/make-4.0.tar.gz
- tar xf make-4.0.tar.gz
- cd make-4.0/
- ./configure
- make & make install
- mv /usr/bin/make /usr/bin/make.bak
- ln -s /usr/local/bin/make /usr/bin/make
- make -v
yum install bison
- # 下载并解压安装包
- $ 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
- # 配置环境
- ../configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin
- make & make install
- strings /lib64/libc.so.6 | grep GLIBC
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。