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

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

    I tried the below commands on my local, it worked fine:

    brew install v8@3.15
    gem install libv8 -v 'YOUR_VERSION' -- --with-system-v8
    gem install therubyracer -v 'YOUR_VERSION' -- --with-v8-dir=/usr/local/opt/v8@3.15
    bundle install
    

提交回复
热议问题