乘客说 Bundler:GemNotFound 错误,而捆绑安装却说它在那里

发布于 2024-11-19 22:54:50 字数 738 浏览 1 评论 0原文

我在共享主机上遇到 Passenger 错误

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

,但如果我运行“bundle install”,它会说一切正常:(

并且 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

是我的应用程序中的错误还是主机的错误?如何?我解决它吗?

i get Passenger error on shared hosting

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

but if i run "bundle install" it says everything is ok :(

and the contents of the Gemfile are:

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" gives

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

is it the error in my app or error of the hosting? how do i solve it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

南城追梦 2024-11-26 22:54:50

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

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

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

it was hosting service bug. here's their reply:

"Passenger and the shell are on two different servers. i18n was installed on
Passenger, however the version was not 0.6.0."

so as i suspected different gems were used for passenger than the ones bundler used

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文