在任何来源找不到i18n-0.6.0 [英] Could not find i18n-0.6.0 in any of the sources

查看:168
本文介绍了在任何来源找不到i18n-0.6.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚从Rails 3.0.3升级到3.2.1。升级在我的Mac上顺利进行,但我无法在我的Ubuntu生产服务器上运行我的应用程序的3.2.1实例。我得到的错误是这样的:

pre $ 在任何源代码中找不到i18n-0.6.0(Bundler :: GemNotFound)

显然,其他人以前也遇到过这个问题。不幸的是,这里的解决方案并没有为我解决它。做 sudo bundle install 似乎没有什么区别。



我还发现这篇文章,但我不明白究竟OP是什么修复了这个问题。



,但OP的问题就在那里。



我确实有 gem installed:

  $ gem list | grep i18n 
i18n(0.6.0,0.5.0)

我不知道是什么可能是错的。任何想法?

解决方案

我有完全相同的错误。您是否使用rvm和乘客?



如果您在启动乘客安装之前安装了rvm,在乘客完成安装之后,它会为您提供更新apache配置的指示, :

  LoadModule passenger_module /usr/local/rvm/gems/ruby-1.9.3-p125@global/gems/passenger- 3.0.11 / ext / apache2 / mod_passenger.so 
PassengerRoot /usr/local/rvm/gems/ruby-1.9.3-p125@global/gems/passenger-3.0.11
PassengerRuby / usr / local /rvm/wrappers/ruby-1.9.3-p125@global/ruby

我已安装乘客与全球gemset,但后来我创建了另一个gemset,我用我的应用程序(让我们称这个新的gemset'foo')。

这个解决方案适用于我在第三行将'global'改为'foo':

  PassengerRuby /usr/local/rvm/wrappers/ruby-1.9 .3-p125 @ foo / ruby​​ 


I just upgraded from Rails 3.0.3 to 3.2.1. The upgrade went smoothly on my Mac but I'm having trouble getting a 3.2.1 instance of my app running on my Ubuntu production server. The error I'm getting is this:

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

Obviously, other people have had this same problem before. Unfortunately, the solution here doesn't fix it for me. Doing sudo bundle install doesn't seem to make a difference.

I also found this post but I don't understand what exactly the OP did that fixed the problem.

There's this post as well but the OP's problem there just kind of went away by itself.

And I do have the i18n gem installed:

$ gem list | grep i18n
i18n (0.6.0, 0.5.0)

I have no idea what could be wrong. Any ideas?

解决方案

I had exactly the same error. Are you using rvm and passenger?

If you had rvm installed before starting passenger installation, after passenger finishes its installation it gives you the instructions for updating apache configuration with something similar to:

LoadModule passenger_module /usr/local/rvm/gems/ruby-1.9.3-p125@global/gems/passenger-3.0.11/ext/apache2/mod_passenger.so
PassengerRoot /usr/local/rvm/gems/ruby-1.9.3-p125@global/gems/passenger-3.0.11
PassengerRuby /usr/local/rvm/wrappers/ruby-1.9.3-p125@global/ruby

I've installed passenger with global gemset but later I created another gemset which I used for my app (let's call this new gemset 'foo').

The solution that worked for me was to change 'global' to 'foo' in the 3rd line:

PassengerRuby /usr/local/rvm/wrappers/ruby-1.9.3-p125@foo/ruby

这篇关于在任何来源找不到i18n-0.6.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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