为什么我不能在任何来源中找到backports-3.3.2?

时间:2013-07-22 13:05:27

标签: ruby-on-rails ruby

我正在尝试运行Ruby on Rails项目。我安装了RVM,将Ruby设置为版本1.8.7,除了当我尝试运行rackup时我得到了所有内容并且正在运行:

/Users/afrieden/.rvm/gems/ruby-1.8.7-p374/gems/bundler-1.3.5/lib/bundler/spec_set.rb:92:in `materialize': Could not find backports-3.3.2 in any of the sources (Bundler::GemNotFound)
from /Users/afrieden/.rvm/gems/ruby-1.8.7-p374/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:in `map!'
from /Users/afrieden/.rvm/gems/ruby-1.8.7-p374/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:in `materialize'
from /Users/afrieden/.rvm/gems/ruby-1.8.7-p374/gems/bundler-1.3.5/lib/bundler/definition.rb:114:in `specs'
from /Users/afrieden/.rvm/gems/ruby-1.8.7-p374/gems/bundler-1.3.5/lib/bundler/definition.rb:159:in `specs_for'
from /Users/afrieden/.rvm/gems/ruby-1.8.7-p374/gems/bundler-1.3.5/lib/bundler/runtime.rb:13:in `setup'
from /Users/afrieden/.rvm/gems/ruby-1.8.7-p374/gems/bundler-1.3.5/lib/bundler.rb:127:in `setup'
from /Users/afrieden/.rvm/gems/ruby-1.8.7-p374/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
from /Users/afrieden/Downloads/neo_visual_search-master/neovs_app.rb:2
from /Users/afrieden/.rvm/rubies/ruby-1.8.7-p374/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /Users/afrieden/.rvm/rubies/ruby-1.8.7-p374/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /Users/afrieden/Downloads/neo_visual_search-master/config.ru:4
from /Users/afrieden/.rvm/gems/ruby-1.8.7-p374/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
from /Users/afrieden/.rvm/gems/ruby-1.8.7-p374/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
from /Users/afrieden/Downloads/neo_visual_search-master/config.ru:0:in `new'
from /Users/afrieden/Downloads/neo_visual_search-master/config.ru:0

我尝试了gem install Bundler,但它重新安装了,我也遇到了同样的错误。

之前有没有人见过这个问题?谢谢!

1 个答案:

答案 0 :(得分:2)

尝试从源代码安装gem,将其写入Gemfile:

gem 'backports', :require => false

或者

gem "backports", :git => "https://github.com/marcandre/backports.git"
希望这会有所帮助。我认为第一个会工作,如果不尝试另一个。感谢