Rails 4.0.0 Ruby 2.0 Therubyracer gem 安装错误



Ubuntu 12.04 LTS precision32 3.2.0-23-generic-paeRuby 2.0.0p247 (2013-06-27 修订版 41674) [i686-linux]

我已经创建了 Rails (4.0.0) 项目,在 Gemfile 中未注释的 gem 'therubyracer' 并运行了"捆绑安装"。

我收到此错误:

Could not find gem 'therubyracer (~> 0.12) ruby' in the gems available on this machine. Run `bundle install` to install missing gems.

将"execjs","libv8"添加到Gemfile中没有任何区别,以及以所有可能的组合再次卸载和安装这些gem中的每一个都没有区别。

更好的是你可以尝试bundle update它会起作用。

我已经将 therubyracer 版本指定为 0.12.0 并且它有效!

最新更新