Skip to content

Instantly share code, notes, and snippets.

@jeffdevine
Last active November 11, 2016 15:12
Show Gist options
  • Save jeffdevine/1e367768bad9cd904d53 to your computer and use it in GitHub Desktop.
Save jeffdevine/1e367768bad9cd904d53 to your computer and use it in GitHub Desktop.
Installing rubyracer
An error occurred while installing therubyracer (0.12.2), and Bundler cannot continue.
Make sure that `gem install therubyracer -v '0.12.2'` succeeds before bundling.
# V8
brew tap homebrew/versions
brew install homebrew/versions/v8-315
brew link --force v8-315
bundle install
brew unlink v8-315
# Nokogiri
# http://buegling.com/blog/2015/4/26/building-nokogiri-on-os-x
gem install nokogiri -v 1.6.3.1 -- --with-iconv-dir=`xcode-select -p`/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr --with-xml2-include=`xcode-select -p`/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment