【问题标题】:Rails 4.0.0 Ruby 2.0 therubyracer gem installation errorRails 4.0.0 Ruby 2.0 therubyracer gem 安装错误
【发布时间】:2013-10-24 06:49:15
【问题描述】:

Ubuntu 12.04 LTS 精确32 3.2.0-23-generic-pae ruby 2.0.0p247(2013-06-27 修订版 41674)[i686-linux]

我创建了 Rails (4.0.0) 项目,在 Gemfile 中取消注释 gem 'therubyracer' 并运行 'bundle install'。

我得到这个错误:

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

在 Gemfile 中添加 'execjs'、'libv8' 没有任何区别,并且可以以所有可能的组合再次卸载和安装这些 gem。

【问题讨论】:

    标签: ruby-on-rails ruby ruby-on-rails-4 ruby-2.0 therubyracer


    【解决方案1】:

    你可以试试bundle update,它会起作用的。

    【讨论】:

      【解决方案2】:

      我已将 ruby​​racer 版本指定为 0.12.0,它工作正常!

      【讨论】:

        猜你喜欢
        • 2013-06-25
        • 2013-11-15
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-10-27
        • 2015-07-15
        • 2019-03-01
        • 2013-12-01
        相关资源
        最近更新 更多