2012-02-16 112 views
0

我有紅寶石1.9.2,並與打捆1.0.22Heroku的部署錯誤:捆綁版

軌3.0.0當我推到Heroku的,我得到

----->安裝使用捆紮機版本1.1.rc.7

Running: bundle install --without development:test --path vendor/bundle - 

-binstubs斌/依賴性

Fetching gem metadata from http://rubygems.org/......... 

    Bundler could not find compatible versions for gem "bundler": 

    In Gemfile: 
    rails (= 3.0.0) ruby depends on 
    bundler (~> 1.0.0) ruby 
    Current Bundler version: 
    bundler (1.1.rc.7) 
    This Gemfile requires a different version of Bundler. 
    Perhaps you need to update Bundler by running `gem install bundler`? 

爲什麼它使用捆綁器版本1.1.rc.7來安裝依賴關係和 爲什麼它認爲當前捆綁器版本是1.1.rc.7?

.Gemfile或Gemfile.lock中沒有對任何版本的引用。

任何輸入讚賞。

-Thanks

+0

請您Gemfile中添加的問題 – wintersolutions 2012-02-16 08:03:16

+0

[這](http://stackoverflow.com/questions/8967161/error-bundler-could -not-find-compatible-versions-for-gem-bundler-while-pushin)是一個非常相似/重複的問題,也許答案有幫助? – wintersolutions 2012-02-16 08:16:08

+0

我認爲你需要升級到Rails 3.0.3,其中捆綁器依賴從'〜> 1.0.0'改爲'〜> 1.0',因此1.1(在Heroku中)是兼容的。 (相應的提交是https://github.com/rails/rails/commit/8279c0652533b0d87ac58e4cbe2e84047ce97e1b) – matt 2012-02-25 02:46:14

回答

0

如果你在你的Gemfile.lock的下面幾行:

PLATFORMS x86架構的mingw32

一定要刪除它們。而且不要忘了使用:

混帳添加的Gemfile Gemfile.lock的