Skip to content

Instantly share code, notes, and snippets.

@paulsturgess
Created January 19, 2013 22:29
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 paulsturgess/4575608 to your computer and use it in GitHub Desktop.
Save paulsturgess/4575608 to your computer and use it in GitHub Desktop.
Install old rubies on OS X Mountain Lion

Install XQuartz

http://xquartz.macosforge.org/landing/

Install old GCC

brew update
brew tap homebrew/dupes 
brew install autoconf automake apple-gcc42 

Update ~/.bash_profile

export CC=/usr/local/bin/gcc-4.2
export CPPFLAGS=-I/opt/X11/include

For installs that don't look at CC

sudo rm /usr/bin/gcc
sudo rm /usr/bin/gcc-4.2
sudo ln -s /usr/local/bin/gcc-4.2 /usr/bin/gcc
sudo ln -s /usr/local/bin/gcc-4.2 /usr/bin/gcc-4.2

Install openssl

rvm pkg install openssl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment