【问题标题】:Passenger says Bundler:GemNotFound error while the bundle install says it's there乘客说 Bundler:GemNotFound 错误,而捆绑安装说它在那里
【发布时间】:2011-10-04 08:22:27
【问题描述】:

我在共享主机上遇到乘客错误

    Could not find i18n-0.6.0 in any of the sources (Bundler::GemNotFound)

但是如果我运行“捆绑安装”它说一切正常:(

Gemfile 的内容是:

source 'http://rubygems.org'
gem 'rake', '0.8.7'
gem 'tzinfo', '0.3.27'
gem 'mail', '2.2.16'
gem 'arel', '2.0.9'
gem 'rack', '1.2.2'
gem 'i18n', '0.6.0'

gem 'rails', '3.0.5'
gem 'mysql2'
gem 'paperclip'
gem 'devise'
gem 'jquery-rails'
gem 'acts-as-taggable-on'
gem "will_paginate", "~> 3.0.pre2"
gem 'tiny_mce'
gem "oa-oauth", :require => "omniauth/oauth"
gem "acts_as_list"

"bundle show i18n" 给出

/usr/lib/ruby/gems/1.8/gems/i18n-0.6.0

是我的应用程序错误还是主机错误?怎么解决?

【问题讨论】:

    标签: ruby-on-rails gem passenger bundler


    【解决方案1】:

    这是托管服务错误。这是他们的回复:

    "Passenger 和 shell 在两个不同的服务器上。i18n 安装在 乘客,但是版本不是 0.6.0。”

    所以我怀疑乘客使用的宝石与捆绑器使用的宝石不同

    【讨论】:

    • 如果他们最终无法解决问题,请考虑使用bundle pack 为应用程序“供应商”宝石。
    猜你喜欢
    • 1970-01-01
    • 2011-01-22
    • 2017-09-13
    • 2023-03-05
    • 2015-09-03
    • 1970-01-01
    • 2017-01-24
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多