ARTICLE DETAIL

资讯详情

深耕网站建设与运营推广的一线实战洞察。

CentOS 7 aarch64停止更新后安装gcc8 —— 筑梦之路

CentOS 7 aarch64停止更新后安装gcc8 —— 筑梦之路 CentOS 7.9非X86架构系统生命周期结束后2024-6-30配置在线可用yum源 —— 筑梦之路_centos7.9 arm-CSDN博客以前的做法sudo yum install centos-release-scl-rh sudo yum install devtoolset-8-build sudo yum install devtoolset-8-gdb sudo yum install devtoolset-8-gcc devtoolset-8-gcc-c # 临时启用 source /opt/rh/devtoolset-8/enable # 永久启用 echo source /opt/rh/devtoolset-8/enable /etc/profile2024年6月30日后这种方式不行了官方停止维护更新了现在的做法基于以前的修改repo文件cat CentOS-SCLo-scl-rh.repo | grep -v ^# | grep -v ^$ [centos-sclo-rh] nameCentOS-7 - SCLo rh mirrorlisthttp://mirrorlist.centos.org?arch$basearchrelease7reposclo-rh gpgcheck1 enabled0 gpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo [centos-sclo-rh-testing] nameCentOS-7 - SCLo rh Testing baseurlhttp://buildlogs.centos.org/centos/7/sclo/$basearch/rh/ gpgcheck0 enabled1 gpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo [centos-sclo-rh-source] nameCentOS-7 - SCLo rh Sources baseurlhttp://vault.centos.org/centos/7/sclo/Source/rh/ gpgcheck1 enabled0 gpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo [centos-sclo-rh-debuginfo] nameCentOS-7 - SCLo rh Debuginfo baseurlhttp://debuginfo.centos.org/centos/7/sclo/$basearch/ gpgcheck1 enabled0 gpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo# 阿里云的源 文件 CentOS-SCLo-scl.repo 将 # baseurlhttp://mirror.centos.org/centos/7/sclo/$basearch/sclo/ 修改为 baseurlhttps://mirrors.aliyun.com/centos/$releasever/sclo/$basearch/sclo/ 删除以下行 mirrorlisthttp://mirrorlist.centos.org?arch$basearchamp;release7amp;reposclo-sclo 最终为 nameCentOS-7 - SCLo sclo baseurlhttps://mirrors.aliyun.com/centos/$releasever/sclo/$basearch/sclo/ gpgcheck1 enabled1 文件 CentOS-SCLo-scl-rh.repo 将 #baseurlhttp://mirror.centos.org/centos/7/sclo/$basearch/rh/ 修改为 baseurlhttps://mirrors.aliyun.com/centos/$releasever/sclo/$basearch/rh/ 删除以下行 mirrorlisthttp://mirrorlist.centos.org?arch$basearchamp;release7amp;reposclo-rh 最终为 nameCentOS-7 - SCLo rh baseurlhttps://mirrors.aliyun.com/centos/$releasever/sclo/$basearch/rh/ gpgcheck1 enabled1yum clean all yum makecache fast 其他操作跟上面的一样比如安装gcc9 yum install devtoolset-9-gcc devtoolset-9-gcc-c 启用新版gcc scl enable devtoolset-9 bash 添加到用户环境变量 ~/.bashrc source /opt/rh/devtoolset-9/enable 升级libstdc.so.6 # 更新lib libstdc.so.6.0.26 wget https://cdn.frostbelt.cn/software/libstdc%2B%2B.so.6.0.26 # 替换系统中的/usr/lib64 把下载的libstdc.so.6.0.26 cp 到 /usr/lib64/ cd /usr/lib64/ ln -snf ./libstdc.so.6.0.26 libstdc.so.6https://buildlogs.centos.org/
返回列表