任何想法我该怎么办?这是来自bundler的错误消息
$ bundle install
Fetching gem metadata from http://rubygems.org/........
Fetching gem metadata from http://rubygems.org/..
Bundler could not find compatible versions for gem "dm-core":
In Gemfile:
dm-adapter-simpledb (>= 0) ruby depends on
dm-core (~> 0.10.0) ruby
dm-core (1.2.0)
这是我的Gemfile
source 'http://rubygems.org'
gem 'sinatra'
gem 'json'
gem 'prawn'
gem 'prawn-graph'
gem 'prawn-layout'
gem 'prawn-fast-png'
gem 'prawn-qrcode'
gem 'data_mapper'
gem 'dm-core'
gem 'dm-mysql-adapter'
gem 'dm-postgres-adapter'
gem 'dm-migrations'
gem 'dm-adapter-simpledb'
gem 'aws-sdk', '~> 1.3.4'
gem 'dm-paperclip'
gem 'savon'
gem 'rmagick'
gem 'SystemTimer', :require => "system_timer", :platforms => :ruby_18
gem 'rack-timeout'
gem 'rufus-scheduler'
gem 'mail'
答案 0 :(得分:1)
尝试从Gemfile中删除dm-core
gem。无论如何你都不需要它 - dm-adapter-simpledb
需要它。
如果绝对必须在Gemfile中包含dm-core
gem,请将其设置为Gemfile.lock中dm-adapter-simpledb
所需的版本。
答案 1 :(得分:0)
dm-adapter-simpledb取决于dm-core版本0.10.0,你拥有的版本是1.2.0。要么像Lukas建议的那样删除它,要么更新你的gemfile:`dm-core','〜> 0.10.0'