How to install GCC/G++ 8 on CentOS

前端 未结 3 786
梦毁少年i
梦毁少年i 2021-02-04 15:58

I\'m used to install packages on Debian/Ubuntu distributions, but now I need to install gcc and g++ version 8.*. There is only version 4.* in CentOS re

3条回答
  •  时光取名叫无心
    2021-02-04 16:25

    Permanently adding DTS to your development environment

    After installing the devtoolset:

    yum install devtoolset-8-gcc devtoolset-8-gcc-c++
    

    You can also use the following command, to make DTS the default:

    source scl_source enable devtoolset-8
    

    The benefit of this command is that it can be added to .bashrc, so that you don't have to run the scl command every time you login:

    scl enable devtoolset-8 -- bash
    

提交回复
热议问题