Skip to content

Instantly share code, notes, and snippets.

@johnmurrayvi
Created May 3, 2014 22:35
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 johnmurrayvi/5bb94d98b8a54e4ee7d1 to your computer and use it in GitHub Desktop.
Save johnmurrayvi/5bb94d98b8a54e4ee7d1 to your computer and use it in GitHub Desktop.
add-gcc-alternatives
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.6
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 70 --slave /usr/bin/g++ g++ /usr/bin/g++-4.7
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 80 --slave /usr/bin/g++ g++ /usr/bin/g++-4.8
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 75 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment