Error installing libv8: ERROR: Failed to build gem native extension

后端 未结 16 1276
不思量自难忘°
不思量自难忘° 2020-11-27 09:21

I made a rails project with,

rails new test_bootstrap.

succeeded.

moved to the project dir and added the gems

gem \         


        
16条回答
  •  甜味超标
    2020-11-27 09:26

    My issue wasn't related with therubyracer at all just libv8 gem and as @rishav-bhardwaj pointed --with-system-v8 didn't do the trick, instead i had to exec

    bundle update

    then

    bundle install

    and finally

    Bundle complete!

    The error is gone!

    Gem::Ext::BuildError: ERROR: Failed to build gem native extension. An error occurred while installing libv8 (3.16.14.7), and Bundler cannot continue. Make sure that `gem install libv8 -v '3.16.14.7'` succeeds before bundling.

提交回复
热议问题