Bundler无法找到gem“tilt”的兼容版本:

时间:2013-12-20 04:59:47

标签: ruby bundler tilt

如何解决?

Bundler could not find compatible versions for gem "tilt":
  In Gemfile:
    sprockets (>= 2.2.1) ruby depends on
      tilt (!= 1.3.0, ~> 1.1) ruby

  tilt (2.0.0)


(Bundler::VersionConflict)
/usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.5/lib/bundler/resolver.rb:130:in `block in resolve'
/usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.5/lib/bundler/resolver.rb:128:in `catch'
/usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.5/lib/bundler/resolver.rb:128:in `resolve'
/usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.5/lib/bundler/definition.rb:179:in `resolve'
/usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.5/lib/bundler/definition.rb:114:in `specs'
/usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.5/lib/bundler/definition.rb:159:in `specs_for'
/usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.5/lib/bundler/definition.rb:148:in `requested_specs'
/usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.5/lib/bundler/environment.rb:18:in `requested_specs'
/usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.5/lib/bundler/runtime.rb:13:in `setup'
/usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.5/lib/bundler.rb:120:in `setup'
/usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.5/lib/bundler/setup.rb:17:in `<top (required)>'
/usr/local/lib/ruby/site_ruby/1.9/rubygems/custom_require.rb:60:in `require'
/usr/local/lib/ruby/site_ruby/1.9/rubygems/custom_require.rb:60:in `rescue in require'
/usr/local/lib/ruby/site_ruby/1.9/rubygems/custom_require.rb:35:in `require'
/usr/local/lib/ruby/gems/1.9/gems/passenger-4.0.29/lib/phusion_passenger/loader_shared_helpers.rb:219:in `block in run_load_path_setup_code'
/usr/local/lib/ruby/gems/1.9/gems/passenger-4.0.29/lib/phusion_passenger/loader_shared_helpers.rb:333:in `running_bundler'
/usr/local/lib/ruby/gems/1.9/gems/passenger-4.0.29/lib/phusion_passenger/loader_shared_helpers.rb:217:in `run_load_path_setup_code'
/usr/local/lib/ruby/gems/1.9/gems/passenger-4.0.29/helper-scripts/rack-preloader.rb:96:in `preload_app'
/usr/local/lib/ruby/gems/1.9/gems/passenger-4.0.29/helper-scripts/rack-preloader.rb:153:in `<module:App>'
/usr/local/lib/ruby/gems/1.9/gems/passenger-4.0.29/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
/usr/local/lib/ruby/gems/1.9/gems/passenger-4.0.29/helper-scripts/rack-preloader.rb:28:in `<main>'

1 个答案:

答案 0 :(得分:2)

我想你有Gemfile

gem 'sprockets', '>= 2.2.1'
gem 'tilt', '2.0.0'

tilt版本2.0.0至关重要吗?如果可以降级它,您可以执行以下操作。

更改Gemfile

gem 'tilt', '1.4.1' # the previous version http://rubygems.org/gems/tilt

运行

bundle update tilt

在此之后,您可以从Gemfile中删除倾斜版本