Installing libv8 gem on OS X 10.9+

后端 未结 20 1006
旧时难觅i
旧时难觅i 2020-11-29 14:41

I\'m trying to install libv8 3.16.14.3 but getting an error on OSX Mavericks using latest stable rvm and ruby-1.9.3-p125.

This is the output of running the command \

20条回答
  •  既然无缘
    2020-11-29 15:21

    When I tried the accepted answer, libv8 would install successfully with gem install libv8, but bundle install would fail on libv8. I think that bundle install was trying to install a different version of libv8. I was able to find a solution that worked for me.

    I needed libv8 because therubyracer depends on it. To get it to install, I noted the version that was failing to install in the gem_make.out log for therubyracer. (The path for the gem_make.out log will be in the failure message.) In my case it was 3.16.14.7. (This version will probably change over time, in case you're reading this three years from now.) Then I did this:

    gem install libv8 -v 3.16.14.7 -- --with-v8-lib <-- note different flag from accepted answer

    which allowed this to work:

    gem install therubyracer

    which allowed me to complete my bundle install.

    This worked for me on OSX Yosemite.

提交回复
热议问题