0

当我做一个

bundle install --path vendor/bundle

在我的应用程序上,我收到以下错误。

Bundler could not find compatible versions for gem "bundler":
  In Gemfile:
    bundler (= 1.0.18) java

  Current Bundler version:
    bundler (1.1.5)

This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running `gem install bundler`?

我的宝石清单显示我有提到的宝石

*** LOCAL GEMS ***

bundler (1.1.5, 1.0.22, 1.0.18)

我的 gem 文件看起来像这样

gem "rake", "0.9.2"
gem "activerecord-jdbc-adapter", "1.2.0"
gem "activerecord-jdbcmysql-adapter", "1.2.0"
gem "acts_as_tree", "0.1.1"
gem "bundler", "1.0.18", :require => "bundler"
gem "database_cleaner", "0.6.7"
gem "jdbc-mysql", "5.1.13"
gem "jruby-jars", "1.6.2"
gem "jruby-rack", "1.1.3"
gem "jruby-openssl", "0.7.4"
gem "net-scp", "1.0.4"
gem "net-ssh", "2.2.1"
gem 'uuidtools', "2.1.1"
gem 'nokogiri', "1.5.0"

我该如何解决?我使用 jruby-1.6.3 和 rails 3.0.10。

4

1 回答 1

0

您是否尝试过 - 从 gemfile 中删除捆绑器 - 将其设置为捆绑器版本以用于捆绑它 - 反之亦然:使用捆绑器版本来捆绑您在 gem 文件中需要的

但正如安东尼所说,你有理由将它包含在 Gemfile 中吗?

于 2012-07-31T21:11:24.593 回答