當我在我的應用程序做了爲什麼捆綁安裝不能在Gemfile中使用捆綁器的版本?
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。
你爲什麼指定一個打包機版本?無論如何,bundler不應該在Gemfile中,因爲它是處理Gemfiles的程序! – 2012-07-31 20:40:01