Created
September 15, 2012 00:06
-
-
Save mlevans/3725694 to your computer and use it in GitHub Desktop.
Xcode 4.2 installed, but I need gcc-4.2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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