Last active
April 17, 2018 15:33
-
-
Save edwardstock/05c609751786c77ea6e30d5289dcca50 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
yum install centos-release-scl | |
yum install devtoolset-7-gcc* | |
# enable bin (originally installed to /opt/rh/devtoolset-7/root/ ) | |
# scl exports to $PATH /opt/rh/devtoolset-7/root/bin/* | |
scl enable devtoolset-7 bash | |
# check | |
`which g++` -v | |
`which gcc` -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Add this to /etc/profile.d/devtoolset.sh to enable toolchain autolinking | |
source scl_source enable devtoolset-7 | |
#scl enable devtoolset-7 bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment