【问题标题】:The rubyracer + libV8rubyracer + libV8
【发布时间】:2012-12-20 16:52:13
【问题描述】:

使用相同的 gemfile 部署了一堆应用程序;

我现在遇到了一个大问题,它破坏了我所做的任何事情。

rubyracer 告诉我它需要在 gemfile 中添加 gem 'libv8', '~> 3.11.8'(以前不是这样)。

An error occured while installing therubyracer (0.11.0), and Bundler cannot continue.
Make sure that `gem install therubyracer -v '0.11.0'` succeeds before bundling.

如果我删除了 ruby​​racer 和 libv8,我会收到另一个错误,告诉我以下信息:

Could not find rake-10.0.3 in any of the sources (Bundler::GemNotFound)

如果我在我的 Gemfile 中添加 rake,来自乘客的同样错误,没有任何效果

更不用说运行捆绑安装时 libv8 需要 10 分钟以上的时间来安装...... 有谁遇到过这样的问题并解决了,谢谢分享

+

有些人告诉使用 node.js 而不是 therubyracer……这两者有什么关系,因为 node 会在 rails 之外?

【问题讨论】:

    标签: ruby-on-rails-3 deployment gemfile


    【解决方案1】:

    尝试将此添加到您的 Gemfile:-

    gem 'therubyracer','0.11.0beta5'

    然后捆绑安装。希望这会有所帮助。

    【讨论】:

    • gem "execjs", "1.4.0" 和 gem "therubyracer", "0.10.2" 在以前的项目中为我工作过,所以我使用了它。得到这一切是一件很痛苦的事。宝石上的新版本取决于会破坏的新版本...... wuz 对此不满意。
    猜你喜欢
    • 2012-11-22
    • 2011-12-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-29
    • 2022-08-14
    • 2013-05-07
    • 2015-03-26
    相关资源
    最近更新 更多