Instructions are to install DevToolSet for CentOS 7.
Requirements
- centos-release-scl - Software Collections ( SCL ) Repository
- devtoolset-7-gcc.x86_64
- devtoolset-7-gcc-c++.x86_64
- devtoolset-7-gcc-gdb-plugin.x86_64
- devtoolset-7-gcc-gfortran.x86_64
- devtoolset-7-gcc-plugin-devel.x86_64
Installing SCL Repository
# yum install centos-release-scl
Install the Development Tools
# yum install devtoolset-7-gcc*
Note: This installs gcc version 7 as well.
How to use the Development Tools
# scl enable devtoolset-7 bash
Verify we can access gcc and other development tools.
# which gcc
Output below
/opt/rh/devtoolset-7/root/usr/bin/gcc
Done