无法安装gem dm-adapter-simpledb

时间:2012-08-20 22:59:09

标签: ruby rubygems

任何想法我该怎么办?这是来自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'

2 个答案:

答案 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'