Installing libv8 gem on OS X 10.9+

后端 未结 20 1021
旧时难觅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:20

    I tried a number of solutions outlined in previous answers, but found that running bundle (to install other, missing gems) would attempt to re-compile libv8 (despite having already installed it successfully using --with-system-v8) and thus suffer from the same issue.

    Eventually, I found that removing the libv8 gem, fetching the gem file from rubygems, and then manually installing the .gem file with the --with-system-v8 flag worked for me.

    i.e.

    gem uninstall libv8
    gem fetch libv8 -v LIBV8_VERSION
    gem install libv8-LIBV_VERSION.gem -- --with-system-v8
    bundle
    

    Thanks to Gaurav Agarwal's answer for leading me down the right path!

提交回复
热议问题