警告:宝石慢性'被发现有多种来源

时间:2015-03-04 14:05:31

标签: ruby ruby-on-rails-4

在rails应用程序上运行我的ruby之后我遇到了这个错误:

Warning: the gem 'chronic' was found in multiple sources.
Installed from: http://rubygems.org/
Also found in:
 * http://gemcutter.org/
You should add a source requirement to restrict this gem to your preferred     source.
For example:
gem 'chronic', :source => 'http://rubygems.org/'
Then uninstall the gem 'chronic' (or delete all bundled gems) and then install again.

我不要这样:宝石'慢性',:来源=> 'http://rubygems.org/'喜欢提到......但后来我收到了这个错误:

-bash: http://rubygems.org/: File or Directory not found 

我该如何解决这个问题?

1 个答案:

答案 0 :(得分:2)

使用gem 'chronic', :path => 'http://rubygems.org/'

如果您想从终端运行它,请使用gem install chronic -s http://rubygems.org/