How to fix libv8 error from Gemfile on Mavericks?

When I run bundle install , I get

 An error occurred while installing libv8 (3.11.8.17), and Bundler cannot continue. Make sure that `gem install libv8 -v '3.11.8.17'` succeeds before bundling. 

Libv8 - Addiction for lunchy and therubyracer gemstones.

I blocked my Gemfile.lock stone libv8 on 3.11.8.17

But I found that I can lower it to 3.3.10.4

install / upgrade package: installation of libv8 (therubyracer) failed (with native extensions)

How to do it?

I also found a working stone 3.11.8.17 , but I don’t know how to implement it in my system. https://github.com/cowboyd/libv8/issues/107#issuecomment-26146673

+16
ruby ruby-on-rails bundle osx-mavericks gem
Oct 24 '13 at 14:33
source share
5 answers

In fact, you can install this version on Mavericks:

 gem install libv8 -v 3.11.8.17 -- --with-system-v8 

I can confirm that this works with rbenv and ruby ​​1.9.3p448

See a similar topic here. Installing a libv8 image on OS X 10.9+

+31
Oct 29 '13 at 19:27
source share

You need to reinstall libv8

 $ gem uninstall libv8 $ brew install v8 $ gem install therubyracer 
+14
Oct 25 '13 at 1:06 on
source share

try updating the ruby ​​to the highest level of correction. libv8 and the rubyracer gem installed right after I updated ruby-1.8.7 after switching from p357 to p375.

0
Apr 05 '14 at 3:27
source share

Try

gem "therubyracer", "~> 0.10.2" in the Gemfile

And he will install the libv8 dependent gem (3.3.10.4), and the problem with the build gem internal extension will be solved.

0
Aug 07 '14 at 5:33
source share

Follow the commands below, this will surely solve the problem:

gem install rmagick -v '2.13.2'

and then run: gem install libv8 -v 3.11.8.17 - --with-system-v8

0
Mar 05 '15 at 13:50
source share



All Articles