我做的时候
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 "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。
答案 0 :(得分:0)
但正如安东尼所说,你有理由把它包含在Gemfile中吗?