I upgraded to OS X Mavericks, and I’ve been seeing this error while bundling older Rails projects:
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. ... Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Unable to find a compiler officially supported by v8. It is recommended to use GCC v4.4 or higher Using compiler: g++ ... An error occurred while installing libv8 (126.96.36.199), and Bundler cannot continue. Make sure that `gem install libv8 -v '188.8.131.52'` succeeds before bundling.
To get past it, try updating your
Gemfile, specifying a newer version of
gem 'therubyracer', '~> 0.12.0'
bundle again to update
therubyracer and it’s dependencies.