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

后端 未结 16 1275
不思量自难忘°
不思量自难忘° 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:31

    With homebrew this helps me to solve this error.

    brew tap homebrew/versions
    brew install v8-315
    
    gem install libv8 -v '3.16.14.13' -- --with-system-v8
    gem install therubyracer -- --with-v8-dir=/usr/local/opt/v8-315
    
    bundle install
    

    Seen on rubyracer Github issues.

提交回复
热议问题