【发布时间】:2015-10-15 20:22:10
【问题描述】:
我在加载设计 gem 时出错:
Boot Error Something went wrong while loading config.ru Bundler::GemNotFound: Could not find gem 'devise (~> 3.5.1) ruby' in any of the gem sources listed in your Gemfile or available on this机器。
/Library/Ruby/Gems/2.0.0/gems/bundler-1.10.5/lib/bundler/resolver.rb:347:in
block in verify_gemfile_dependencies_are_found!' /Library/Ruby/Gems/2.0.0/gems/bundler-1.10.5/lib/bundler/resolver.rb:325:ineach' /Library/Ruby/Gems/2.0.0/gems/bundler-1.10.5/lib/bundler/resolver.rb:325:inverify_gemfile_dependencies_are_found!' /Library/Ruby/Gems/2.0.0/gems/bundler-1.10.5/lib/bundler/resolver.rb:198:instart' /Library/Ruby/Gems/2.0.0/gems/bundler-1.10.5/lib/bundler/resolver.rb:182:inresolve' /Library/Ruby/Gems/2.0.0/gems/bundler-1.10.5/lib/bundler/definition.rb:200:inresolve' /Library/Ruby/Gems/2.0.0/gems/bundler-1.10.5/lib/bundler/definition.rb:140:inspecs' /Library/Ruby/Gems/2.0.0/gems/bundler-1.10.5/lib/bundler/definition.rb:185:inspecs_for' /Library/Ruby/Gems/2.0.0/gems/bundler-1.10.5/lib/bundler/definition.rb:174:inrequested_specs' /Library/Ruby/Gems/2.0.0/gems/bundler-1.10.5/lib/bundler/environment.rb:18:inrequested_specs' /Library/Ruby/Gems/2.0.0/gems/bundler-1.10.5/lib/bundler/runtime.rb:13:insetup' /Library/Ruby/Gems/2.0.0/gems/bundler-1.10.5/lib/bundler.rb:127:insetup' /Library/Ruby/Gems/2.0.0/gems/bundler-1.10.5/lib/bundler.rb:134:inrequire' /Users/Pabi/code/fwitter/config/environment.rb:2:in' /Users/Pabi/code/fwitter/app/controllers/application_controller.rb:3:inrequire_relative' /Users/Pabi/code/fwitter/app/controllers/application_controller.rb:3:in'config.ru:1:inrequire_relative' config.ru:1:inblock in inner_app' /Library/Ruby/Gems/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:ininstance_eval' /Library/Ruby/Gems/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:ininitialize' config.ru:1:innew' config.ru:1:ininner_app' /Library/Ruby/Gems/2.0.0/gems/shotgun-0.9/lib/shotgun/loader.rb:112:ineval' /Library/Ruby/Gems/2.0.0/gems/shotgun-0.9/lib/shotgun/loader.rb:112:ininner_app' /Library/Ruby/Gems/2.0.0/gems/shotgun-0.9/lib/shotgun/loader.rb:102:inassemble_app' /Library/Ruby/Gems/2.0.0/gems/shotgun-0.9/lib/shotgun/loader.rb:86:inproceed_as_child' /Library/Ruby/Gems/2.0.0/gems/shotgun-0.9/lib/shotgun/loader.rb:31:incall!' /Library/Ruby/Gems/2.0.0/gems/shotgun-0.9/lib/shotgun/loader.rb:18:incall' /Library/Ruby/Gems/2.0.0/gems/shotgun-0.9/lib/shotgun/favicon.rb:12:incall' /Library/Ruby/Gems/2.0.0/gems/shotgun-0.9/lib/shotgun/static.rb:14:incall' /Library/Ruby/Gems/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:138:incall' /Library/Ruby/Gems/2.0.0/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:inservice' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/webrick/httpserver.rb:138:inservice' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/webrick/httpserver.rb:94:inrun' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
这是我的 gems 文件中的内容:
source "https://rubygems.org"
gem "sinatra"
gem "activerecord"
gem "sinatra-activerecord"
gem "rake"
gem 'devise', '~> 3.5.1'
gem "rack-ssl-enforcer"
gem "haml"
group :development do
gem "pry"
gem "shotgun"
gem "tux"
gem "sqlite3"
end
我不知道它可能是什么。我做了捆绑安装,它安装了设计gem。当我删除设计时,一切正常。
【问题讨论】:
标签: ruby-on-rails ruby ruby-on-rails-3 devise gem