Skip to content

Instantly share code, notes, and snippets.

@edwardstock
Last active April 17, 2018 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edwardstock/05c609751786c77ea6e30d5289dcca50 to your computer and use it in GitHub Desktop.
Save edwardstock/05c609751786c77ea6e30d5289dcca50 to your computer and use it in GitHub Desktop.
#!/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
#!/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