Skip to content

Instantly share code, notes, and snippets.

@mlevans
Created September 15, 2012 00:06
Show Gist options
  • Save mlevans/3725694 to your computer and use it in GitHub Desktop.
Save mlevans/3725694 to your computer and use it in GitHub Desktop.
Xcode 4.2 installed, but I need gcc-4.2
In a temporary directory:
curl -O http://opensource.apple.com/tarballs/gcc/gcc-5666.3.tar.gz
tar zxf gcc-5666.3.tar.gz
cd gcc-5666.3
mkdir -p build/obj build/dst build/sym
gnumake install RC_OS=macos RC_ARCHS='i386 x86_64' TARGETS='i386 x86_64' SRCROOT=`pwd` OBJROOT=`pwd`/build/obj DSTROOT=`pwd`/build/dst SYMROOT=`pwd`/build/sym
sudo ditto build/dst /
(Now you can install RVM with CC=/usr/bin/gcc-4.2 rvm install 1.9.3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment