Gem install therubyracer -v '0.11.4'?

僤鯓⒐⒋嵵緔 提交于 2019-12-04 02:29:39

I had the sam problem in OSX El Capitan. The steps I used to get over this were

First check if V8 is installed or not. I used brew to install it.

brew install homebrew/versions/v8-315

Try uninstalling libv8, therubyracer gems if some instance exists.

gem uninstall -a libv8
gem uninstall -a therubyracer

Then install the libv8 gem.

gem install libv8 -v '<<VERSION>>' -- --with-system-v8

Then install the therubyracer gem.

gem install therubyracer -v '<<VERSION>>' -- --with-v8-dir=$(brew --prefix v8-315)

This worked for me:

$ brew upgrade gcc

$ gem uninstall therubyracer

$ gem uninstall libv8

$ gem install therubyracer -v '0.12.0'
Fetching: therubyracer-0.12.0.gem (100%)
Building native extensions.  This could take a while...
Successfully installed therubyracer-0.12.0
1 gem installed

$ gem install libv8 -v '3.16.14.3' -- --with-system-v8
Fetching: libv8-3.16.14.3.gem (100%)
Building native extensions with: '--with-system-v8'
This could take a while...
Successfully installed libv8-3.16.14.3
1 gem installed

References:

I had the same problem, updating therubyracer to the latest version solved the issue.

Try:

bundle update therubyracer

If you also have issues with libv8 then try:

bundle update libv8
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!