How to Install gcc 5.3 with yum on CentOS 7.2?

前端 未结 5 1826
时光取名叫无心
时光取名叫无心 2020-12-04 04:54

I am using CentOS 7.2

When I use yum groupinstall \"Development Tools\", gcc version is 4.8.5, like this:

I would like to install

5条回答
  •  南方客
    南方客 (楼主)
    2020-12-04 05:45

    The best approach to use yum and update your devtoolset is to utilize the CentOS SCLo RH Testing repository.

    yum install centos-release-scl-rh
    yum --enablerepo=centos-sclo-rh-testing install devtoolset-7-gcc devtoolset-7-gcc-c++
    

    Many additional packages are also available, to see them all

    yum --enablerepo=centos-sclo-rh-testing list devtoolset-7*
    

    You can use this method to install any dev tool version, just swap the 7 for your desired version. devtoolset-6-gcc, devtoolset-5-gcc etc.

提交回复
热议问题