Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save j-wang/5915475 to your computer and use it in GitHub Desktop.
Save j-wang/5915475 to your computer and use it in GitHub Desktop.
I was having trouble install bud (gem install bud) and eventually figured out that it was a problem with the g++ version I had installed (not the mac native 4.2). '-Wshorten-64-to-32' is native to mac only. This gist temporarily replaces g++ with g++-4.2 and then reverses the switch. Error I was getting: Jamess-MacBook-Pro:exercises Avantos$ gem…
mv /usr/local/bin/g++ /usr/local/bin/g++.bak && ln -s /usr/bin/g++-4.2 /usr/local/bin/g++
rm /usr/local/bin/g++ && mv /usr/local/bin/g++.bak /usr/local/bin/g++
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment