CentOS yum升级GCC到4.8

wget http://people.centos.org/tru/devtools-2/devtools-2.repo
mv devtools-2.repo /etc/yum.repos.d
yum install devtoolset-2-gcc devtoolset-2-binutils devtoolset-2-gcc-c++

三个安装包会被装在 /opt/rh/devtoolset-2/root/ 中

更新软连接:

mv /usr/bin/gcc /usr/bin/gcc-4.4.7
mv /usr/bin/g++ /usr/bin/g++-4.4.7
mv /usr/bin/c++ /usr/bin/c++-4.4.7
ln -s /opt/rh/devtoolset-2/root/usr/bin/gcc /usr/bin/gcc
ln -s /opt/rh/devtoolset-2/root/usr/bin/c++ /usr/bin/c++
ln -s /opt/rh/devtoolset-2/root/usr/bin/g++ /usr/bin/g++
gcc --version
时间: 2024-08-18 12:20:50

CentOS yum升级GCC到4.8的相关文章

centos yum升级php

centos yum升级php5.3.3到最5.6.3 不要轻易升级,否则后果很严重! 注意事项: 1 升级后之前的php扩展不会丢失 自动会安装对应最新php的扩展2 升级后需重启下apache 才能看到3 升级时候会提示 Loaded plugins: fastestmirror Determining fastest mirrors 参考后面修改,重新执行即可 4 如果失败一般是yum源的问题 注意是对应的64位 centos6.5的php预设5.3.3这个版本,其实对centos来说就是

通过yum升级gcc/g++至版本4.8.2

最近在坐一个日期处理的问题,需要安装sxtwl模块,但是gcc版本4.7死活也安装不上,最后测试到只能升级gcc版本到4.8才得以解决 [[email protected] bin]# gcc -vUsing built-in specs.Target: x86_64-redhat-linuxThread model: posixgcc version 4.4.7 20120313 (Red Hat 4.4.7-23) (GCC)4.4.7版本的gcc是不识别c++11语法的. 下面是CentO

CentOS 7升级gcc版本

Centos 7默认gcc版本为4.8,有时需要更高版本的,这里以升级至8.3.1版本为例,分别执行下面三条命令即可,无需手动下载源码编译 1.安装centos-release-scl sudo yum install centos-release-scl 2.安装devtoolset,注意,如果想安装7.*版本的,就改成devtoolset-7-gcc*,以此类推 sudo yum install devtoolset-8-gcc* 3.激活对应的devtoolset,所以你可以一次安装多个版

centos yum 升级Python2.6 到 2.7

背景: 开发部需要使用python2.7,由于公网的环境python版本都是系统自带的,版本是2.6,需要升级,最好是通过RPM升级. 实施步骤: 1,下载nux 的release文件 wget http://li.nux.ro/download/nux/dextop/el6/i386/nux-dextop-release-0-2.el6.nux.noarch.rpm rpm -ivh nux-dextop-release-0-2.el6.nux.noarch.rpm yum -y instal

Centos 轻松升级 GCC

yum install centos-release-scl-rh centos-release-scl yum install devtoolset-6-gcc devtoolset-6-gcc-c++(devtoolset-3:GCC devtoolset-4:GCC5.3 devtoolset-6:GCC6.2) source /opt/rh/devtoolset-6/enable 参考文献: https://blog.csdn.net/juweiping/article/details/

【转】CentOS 6.6 升级GCC G++ (当前最新版本为v6.1.0) (完整)

原文地址:https://www.cnblogs.com/lzpong/p/5755678.html 我这里是centos7 升级到gcc8.1,过程差不多,参考这篇文章,记录一下. ---原文--- CentOS 6.6 升级GCC G++ (当前最新GCC/G++版本为v6.1.0) 没有便捷方式, yum update....   yum install 或者 添加yum 的 repo 文件 也不行, 只能更新到 4.4.7! then,  只能手动编译安装了,那么开始第一步下载源代码吧,

使用yum升级CentOS 6.5 kernel至3.10.52

we will use ELRepo to install kernel 1. rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org 2. rpm -Uvh http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm 3. yum --enablerepo=elrepo-kernel -y install kernel-lt 4. vi /etc/grub.conf

CentOS 升级GCC G++

没有便捷方式, yum update....   yum install 或者 添加yum 的 repo 文件 也不行, 只能更新到 4.4.7! then,  只能手动编译安装了,那么开始第一步下载源代码吧,GO! 1. 获取安装包并解压 wget http://ftp.gnu.org/gnu/gcc/gcc-6.1.0/gcc-6.1.0.tar.bz2 tar -jxvf gcc-6.1.0.tar.bz2 当然,http://ftp.gnu.org/gnu/gcc 里面有所有的gcc版本

centos升级gcc支持c++11

1. 在home目录下准备一个下载目录 cd /home:mkdir download2. 进入/home/download目录,下载gcc-4.8.2 wget http://gcc.skazkaforyou.com/releases/gcc-4.8.2/gcc-4.8.2.tar.gz ./3. 解压下载的压缩包 tar -xzvf gcc-4.8.2.tar.gz:4. 进入借压缩后的目录 cd gcc-4.8.25. 新建一个编译目录 mkdir gcc-build6. 准备相关依赖库,