Last active
December 27, 2015 00:29
-
-
Save nmu/7237696 to your computer and use it in GitHub Desktop.
Mavericks dev environment gotchas. Mostly Ruby.
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
# libv8 compiler conflict w/ Mavericks | |
# use GCC-4.2 to compile both libv8 & therubyracer: | |
# http://stackoverflow.com/questions/19630154/gem-install-therubyracer-v-0-10-2-on-osx-mavericks-not-installing | |
brew install apple-gcc42 | |
# Add to .bash_profile or prepend install w/ homebrew install location | |
# $ export CC=/usr/bin/gcc # or brew installed location on your machine | |
# $ export CXX=/usr/bin/gcc | |
# $ export CPP=/usr/bin/gcc | |
echo ' | |
# export CC=/usr/bin/gcc | |
export CPP=/usr/local/bin/gcc-4.2 | |
export CXX=/usr/bin/gcc | |
' >> ~/.bash_profile && source ~/.bash_profile | |
# Install libv8 (Mavericks system version) & therubyracer | |
gem install libv8 -v 3.11.8.17 -- --with-system-v8 | |
gem install therubyracer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment