Bundle Install/Error in Installing Libv8 (3.3.10.4) on Rails (Running on Lion)

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



Leave a reply



Submit