Skip to content

Instantly share code, notes, and snippets.

@nmu
Last active December 27, 2015 00: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 nmu/7237696 to your computer and use it in GitHub Desktop.
Save nmu/7237696 to your computer and use it in GitHub Desktop.
Mavericks dev environment gotchas. Mostly Ruby.
# 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