Skip to content

Instantly share code, notes, and snippets.

@egregius313
Created February 8, 2018 19:38
Show Gist options
  • Save egregius313/60082998efaaf93910228b330d4258f7 to your computer and use it in GitHub Desktop.
Save egregius313/60082998efaaf93910228b330d4258f7 to your computer and use it in GitHub Desktop.
Script for bootstrapping gcc and g++ (4.9) on Mac OSX
#!/bin/bash
which brew || /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install gcc@4.9
echo "alias gcc='gcc-4.9'" >> .bash_profile
echo "alias g++='g++-4.9'" >> .bash_profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment