簡體   English   中英

Error-Bundler 找不到 gem “bundler” 的兼容版本:在 Heroku 上推送項目時

[英]Error-Bundler could not find compatible versions for gem “bundler”: while pushing project on Heroku

$ git push heroku mail:master 輸入密鑰'/c/Users/ManishKukreja/.ssh/id_rsa'的密碼:總計0(delta 0),重用0(delta 0)

Heroku receiving push
Ruby/Rails app detected
Installing dependencies using Bundler version 1.1.rc.7
Heroku receiving push
Ruby/Rails app detected

使用 Bundler 版本 1.1.rc.7 安裝依賴項運行:bundle install --without development:test --path vendor/bundle --binstubs bin/ 從http://rubygems.org/獲取 gem 元數據....... Bundler 找不到 gem "bundler" 的兼容版本:在 Gemfile: rails (= 3.0.1) ruby​​ 依賴於 bundler (~> 1.0.0) ruby​​ 當前的 Bundler 版本:bundler (1.1.rc.7) 這個 Gemfile 需要一個不同版本的Bundler。 也許您需要通過運行gem install bundler來更新 Bundler ? 無法通過 Bundler 安裝 gem。

此外,我的機器上已經有了打包器

Using rake (0.9.2.2)
Using activesupport (3.0.1)
Using builder (2.1.2)
Using i18n (0.4.2)
Using activemodel (3.0.1)
Using erubis (2.6.6)
Using rack (1.2.5)
Using rack-mount (0.6.14)
Using rack-test (0.5.7)
Using tzinfo (0.3.31)
Using actionpack (3.0.1)
Using mime-types (1.17.2)
Using polyglot (0.3.3)
Using treetop (1.4.10)
Using mail (2.2.19)
Using actionmailer (3.0.1)
Using bcrypt-ruby (3.0.1)
Using orm_adapter (0.0.6)
Using warden (1.1.0)
Using devise (1.5.3)
Using fastercsv (1.5.4)
Using formtastic (1.2.4)
ng fastercsv (1.5.4)
Using formtastic (1.2.4)
Using has_scope (0.5.1)
Using responders (0.6.4)
Using inherited_resources (1.2.2)
Using thor (0.14.6)
Using railties (3.0.1)
Using kaminari (0.13.0)
Using arel (1.0.1)
Using activerecord (3.0.1)
Using meta_search (0.9.8)
Using activeresource (3.0.1)
 Using bundler (1.0.10)
 Using rails (3.0.1)
 Using sass (3.1.12)
 Using activeadmin (0.3.4)
 Using addressable (2.2.6)
 Using authlogic (2.1.6)
 Using json (1.6.5)
 Using rdoc (3.12)
Using css_parser (1.2.6)
Using launchy (2.0.5)
Using rest-client (1.6.7)
Using rubyzip (0.9.5)
Using term-ansicolor (1.0.7)
Using heroku (2.18.1)
Using nokogiri (1.5.0)
Using pg (0.12.2)
Using roadie (1.1.3)


            MY GemFIle-->

            # this is test for pull and push bittu

            #require "bundler/setup"

            #gem  "rake", "0.9.2"

            source 'http://rubygems.org'

            gem 'rails', '3.0.1'

            gem 'activeadmin'

            gem 'roadie'

            gem 'heroku'

            gem 'sqlite3'

            gem 'pg'


            gem 'authlogic'
            # Bundle edge Rails instead:
            # gem 'rails', :git => 'git://github.com/rails/rails.git'

            gem 'formtastic', '~> 1.2.0'

            #gem 'mysql', '2.8.1'

            gem 'activeadmin'

            gem "mail", "2.2.19"
            #gem "rake", "0.9.2.2"

            #gem 'mail' "2.2.19"

            #gem 'pg'
            #gem 'thin'
            #gem 'sqlite3-ruby', :require => 'sqlite3'

            # gem 'mysql2'
            # gem 'mongrel'
            # Use unicorn as the web server
            # gem 'unicorn'

            # Deploy with Capistrano
            # gem 'capistrano'

            # To use debugger
            # gem 'ruby-debug'

            # Bundle the extra gems:
            # gem 'bj'
            # gem 'nokogiri'
            # gem 'sqlite3-ruby', :require => 'sqlite3'
            # gem 'aws-s3', :require => 'aws/s3'

            #gem "rspec-rails", :group => [:test, :development]

             #group :test do
              # gem "factory_girl_rails"
               #gem "guard-rspec"
               #gem "capybara"
            # end

            # Bundle gems for the local environment. Make sure to
            # put test-only gems in this group so their generators
            # and rake tasks are available in development mode:
            # group :development, :test do
            #   gem 'webrat'
            #end

您的捆綁包已完成! 使用bundle show [gemname]查看捆綁的 gem 的安裝位置。

我該如何解決這個沖突???

有兩種可能的方法可以解決這個問題中提到的這個問題: Bundler 找不到 gem "bundler" 的兼容版本:

  1. 卸載 bundler 1.1.rc.7 並安裝 bundler 1.0.22

  2. 升級到 rails 3.0.12,支持最新版本的 bundler

看起來您可能已將 Bundler 設置為特別需要 1.0,而 Heroku 想要使用 1.1。 您的 Gemfile 中會有一行顯示gem bundler, "~> 1.0"或類似的東西 - 只需去掉逗號和后面的所有內容,以便它只讀取gem bundler

如果不是這種情況,您可以發布您的 Gemfile 嗎?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM