How to install gcc8 using devtoolset-8-gcc

前端 未结 3 2160
走了就别回头了
走了就别回头了 2021-02-15 11:01

I am using CentOS Linux release 7.3.1611 which has gcc 4.8.5 20150623 installed. I am looking for a way to install a newer version of gcc, specially 8.1. I found the following

3条回答
  •  甜味超标
    2021-02-15 11:40

    To install the full tools-set including gfortran on centos 7:

    yum install centos-release-scl
    yum install devtoolset-8
    scl enable devtoolset-8 -- bash
    

    enable the tools:

    source /opt/rh/devtoolset-8/enable 
    

    you may wish to put the command above in .bash_profile

    ref: https://unix.stackexchange.com/questions/477360/centos-7-gcc-8-installation

提交回复
热议问题