How to fix libv8 error from Gemfile on Mavericks?

前端 未结 5 1886
灰色年华
灰色年华 2021-02-04 05:14

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         


        
相关标签:
5条回答
  • 2021-02-04 06:00

    try upgrading your ruby to the highest patch level. libv8 and the rubyracer gem installed right away after I upgraded ruby-1.8.7 after going from p357 to p375.

    0 讨论(0)
  • 2021-02-04 06:00

    Follow the below commands, this will solve the problem for sure:

    gem install rmagick -v '2.13.2'

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

    0 讨论(0)
  • 2021-02-04 06:02

    Try with

    gem "therubyracer", "~> 0.10.2" to Gemfile

    And it will install dependent gem libv8 (3.3.10.4) and the issue of build gem native extension failure got resolve.

    0 讨论(0)
  • 2021-02-04 06:06

    You need to reinstall libv8

    $ gem uninstall libv8
    $ brew install v8
    $ gem install therubyracer
    
    0 讨论(0)
  • 2021-02-04 06:08

    You can actually install that version on Mavericks:

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

    I can confirm this works with rbenv and ruby 1.9.3p448

    See a similar thread here Installing libv8 gem on OS X 10.9+

    0 讨论(0)
提交回复
热议问题