bundle install / update: libv8 (therubyracer) installation fails (with native extensions)
Try that one for a little while:
gem 'therubyracer'
gem 'libv8', '3.16.14.3'
Should help.
Also it's better with a new bundler: gem install bundler --pre
After Xcode 4.4 and OSX 10.8 Installation - 'Failed to build gem native extension' when installing libv8
Try to add
gem 'therubyracer', '0.11.0beta5'
gem 'libv8', '~> 3.11.8'
to your Gemfile. It helps for me.
gem install therubyracer -v '0.10.2' on osx mavericks not installing
If you decide to use a newer therubyracer
gem version, you will no longer have this problem
Otherwise:
brew tap homebrew/dupes # Thanks Tom
brew install apple-gcc42
export CC=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2
export CXX=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/g++-4.2
export CPP=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/cpp-4.2
brew uninstall v8
gem uninstall libv8
gem install therubyracer -v '0.10.2' # specify version
Error when running bundle install on mac - therubyracer failing to install
Do this:
$ gem uninstall libv8 # ignore if this fails
$ gem install libv8 -v 3.16.14.3 -- --with-system-v8 # 2013-08 x86_64-darwin-12 (32.6 MB)
Also edit your Gemfile
and force a newer version of therubyracer
gem "therubyracer", "~> 0.12"
Then try again:
$ bundle update
Ruby On Rails Installation in FreeBSD OS -Error in libv8
This could happen in Ruby 1.8.7 which doesn't automatically include ruby gems like 1.9.x does. There is an update in github here: https://github.com/fractaloop/libv8/blob/master/ext/libv8/extconf.rb
But this doesn't seem to be in the published gem at this time. It should be as easy as installing like this:
gem 'libv8', :git => 'git://github.com/fractaloop/libv8.git'
But from looking at the source, it dynamically associates the gem version with a version of the v8 library, and when i tried it, it failed, saying it was version 0.0.4. I'm on a different OS though, so try it out and see if it works for you.
Related Topics
You Don't Have Write Permissions into the /Var/Lib/Gems/1.9.1 Directory
Regex to Validate String Having Only Characters (Not Special Characters), Blank Spaces and Numbers
Script to Run Against Stdin If No Arg; Otherwise Input File =Argv[0]
How Can One Set Property Values When Initializing an Object in Ruby
Write Array of Radix-2 Numeric Strings to Binary File in Ruby
Ruby: How to Check If a String Contains Multiple Items
Error Running Heckle? 'Current_Code': Undefined Method 'Translate' for Ruby2Ruby
Detecting If This Is an Iframe Load or Direct
What Are Some Good Role Authorization Solutions Used with Authlogic
Making a Module Inherit from Another Module in Ruby
How to Specify a Read Timeout for a Net::Http::Post.New Request in Ruby 2
Documentation for Psych To_Yaml Options
Setting Mime Type for .Ogv Files in Rails Development Environment
Generate Random String Based on Regex