therubyracer - Gem::Ext::BuildError: ERROR: Failed to build gem native extension

前端 未结 14 1833
抹茶落季
抹茶落季 2020-12-07 11:09

I\'m trying to install the following gem versions on Mavericks

  • libv8 (3.16.14.3)
  • therubyracer (0.12.1)

Obviously therubyracer gems depe

14条回答
  •  清歌不尽
    2020-12-07 11:29

    I've got this issue for MacOS Mojave 10.14.2 and I was able to fix this issue when I found where package v8-315 was installed and what the folder name was. In my case, it was here /usr/local/opt/v8@3.15.

    To fix this, I've run next:

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

提交回复
热议问题