Passenger说Bundler:GemNotFound错误,而捆绑安装说它在那里 [英] Passenger says Bundler:GemNotFound error while the bundle install says it's there

查看:443
本文介绍了Passenger说Bundler:GemNotFound错误,而捆绑安装说它在那里的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

 在任何源代码中找不到i18n-0.6.0(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'
gemwill_paginate,〜> 3.0.pre2
gem'tiny_mce'
gemoa-oauth,:require =>omniauth / oauth
gemacts_as_list

show show i18n给出

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

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

解决方案

它存在服务错误。这里是他们的回复:

Passenger和shell在两台不同的服务器上,i18n安装在
Passenger上,但是版本不是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?

解决方案

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

这篇关于Passenger说Bundler:GemNotFound错误,而捆绑安装说它在那里的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆