0
.rvm/gems/ruby-1.9.3-head/gems/bundler-1.0.21/lib/bundler/runtime.rb:31:in `block in setup': You have already activated rack 1.4.0,
but your Gemfile requires rack 1.2.5. Using bundle exec may solve this. (Gem::LoadError)
是我在嘗試在我的任何應用上運行瘦啓動,捆綁exec瘦,rails時得到的錯誤。我試過運行系統級別和應用程序級別包更新/安裝,刪除gemfile.lock並再次更新。 Sudo級別安裝。沒有。防止精簡啓動的機架依賴關係
有什麼建議嗎?
這是我的Gemfile:
source 'http://rubygems.org'
gem 'rails', '3.0.10'
gem 'rake', '0.8.7'
gem 'jquery-rails', '0.2.6'
gem 'pg', :require => 'pg'
gem 'devise'
gem 'nifty-generators'
gem 'mocha'
gem 'thin'
gem 'omniauth'
require 'oauth2'
gem 'fb_graph'
gem 'nokogiri'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'gravatar_image_tag', '1.0.0.pre2'
gem 'will_paginate', '3.0.pre2'
group :development do
gem 'rspec-rails', '2.5.0'
gem 'faker', '0.9.5'
end
group :test do
gem 'rspec', '2.5.0'
gem 'webrat', '0.7.1'
gem 'spork', '0.9.0.rc5'
gem 'factory_girl_rails', '1.0'
end
# Use unicorn as the web server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger (ruby-debug for Ruby 1.8.7+, ruby-debug19 for Ruby 1.9.2+)
# gem 'ruby-debug'
# gem 'ruby-debug19', :require => 'ruby-debug'
# Bundle the extra gems:
# gem 'bj'
# gem 'nokogiri'
# gem 'aws-s3', :require => 'aws/s3'
# Bundle gems for the local environment. Make sure to
# put test-only gems in this group so their generators
# and rake tasks are available in development mode:
# group :development, :test do
# gem 'webrat'
# end
即使新環境和配置到這個新的本地項目文件夾中的所有gem都給出了完全相同的錯誤。 – 2012-01-12 04:20:26
一些如何修復了另一個無法正確啓動的應用程序,該應用程序沒有安裝項目特定的gemset。這可能是我的系統級寶石中發生衝突的東西嗎? – 2012-01-12 04:29:35
你的一個寶石可能需要Rack 1.4.0和其他Gem Rack 1.2.5,你可以檢查你的Gemfile.lock並試圖找出答案。 – fkreusch 2012-01-13 11:24:40