Created
March 24, 2012 23:16
-
-
Save egold/2188971 to your computer and use it in GitHub Desktop.
Temporarily set gcc to point to GCC 4.2 instead of LLVM
This file contains 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
# This gist is a small recipe for temporarily making your Lion box point to GCC 4.2 instead of LLVM, like for things such as Ruby, which isn't yet made to compile on the newer and better LLVM | |
# First make sure you've installed Command Line Tools from Xcode 4.3 preferences | |
cd /usr/bin/ | |
ls -l *gcc* | |
# Important: Only do this if gcc is a symlink to llvm! if not, this gist isn't the way to go! :) | |
# It should look like this: | |
# lrwxr-xr-x 1 root wheel 12 Mar 22 14:12 gcc -> llvm-gcc-4.2 | |
# See how gcc is just a symlink to LLVM? | |
sudo rm gcc | |
sudo ln -s gcc-4.2 gcc | |
# do your ruby shit or whatever. then change things back | |
cd /usr/bin/ | |
ls -l *gcc* | |
sudo rm gcc | |
sudo ln -s llvm-gcc-4.2 gcc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment