获取错误:在部署/迁移到Heroku时更新rubygems [英] Getting error: update rubygems while deploying/migrating to Heroku

查看:93
本文介绍了获取错误:在部署/迁移到Heroku时更新rubygems的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


安装hoe(2.9.4)/ usr / ruby​​1.9.2 / lib / ruby​​ / 1.9.1 / ruby​​gems / installer.rb:170:in> install':hoe需要RubyGems版本> = 1.4。试试'gem update --system'来更新RubyGems本身。 (Gem :: InstallError)```

这是ruby gems版本已过时。有人知道我怎么能解决这个问题?

使用rails 3.0.5与ruby 1.9.2



bundler

 使用rake(0.8.7)
使用RedCloth (4.2.2)
使用abstract(1.0.0)
使用activesupport(3.0.5)
使用构建器(2.1.2)
使用i18n(0.5.0)
使用activemodel(3.0.5)
使用erubis(2.6.6)
使用rack(1.2.2)
使用rack-mount(0.6.14)
使用rack-test(0.5.7)
使用tzinfo(0.3.26)
使用actionpack(3.0.5)
使用MIME类型(1.16)
使用多边形(0.3。 1)
使用treetop(1.4.9)
使用邮件(2.2.17)
使用actionmailer(3.0.5)
使用arel(2.0.9)
使用activerecord(3.0.5)
使用activeresource(3.0.5)
使用archive-tar-minitar(0.5.2)
使用authlogic(2.1.6)
使用xml -simple(1.0.15)
使用aws-s3(0.6.2)
使用bcrypt-ruby(2.1.4)
使用block_helpers(0.3.3)
使用bundler (1.0.10)
使用columnize(0.3.2)
使用diff-lcs(1.1.2)
使用json(1.5.1)
使用小黄瓜(2.3.6)
使用术语-ansicolor(1.0.5)
使用cucumber(0.10.2)
使用nokogiri(1.4.4)
使用cucumber-rails(0.4.1)
使用守护进程(1.0 .10)
使用database_cleaner(0.6.7)
使用factory_girl(1.3.3)
使用faker(0.9.5)
使用fastercsv(1.5.4)
使用form(1.2.3)
使用gem_plugin(0.2.3)
使用haml(3.0.25)
使用hoe(2.9.4)
使用thor(0.14。 6)
使用railties(3.0.5)
使用rails(3.0.5)
使用kaminari(0.12.0)
使用ruby_core_source(0.1.5)
使用linecache19(0.5.12)
使用meta_search(1.0.4)
使用mongrel(1.2.0.pre2)
使用回形针(2.3.11)
使用pg(0.11 .0)
使用pickle(0.4.7)
使用populator(1.0.0)
使用render_inheritable(1.0.0)
使用rspec-core(2.5.1)
使用rspec-expectations(2.5.0)
使用rspec-mocks(2.5 .0)
使用rspec(2.5.0)
使用rspec-rails(2.5.0)
使用ruby-debug-base19(0.11.25)
使用ruby-debug19 (0.11.6)
使用测试单元(1.2.3)
使用will_paginate(3.0.pre2)
使用https://github.com/fesplugas中的typus(3.0.10) /typus.git(at master)
使用webrat(0.7.3)

更新:



heroku stack

  aspen-mri-1.8.6 
* bamboo-ree-1.8.7
bamboo-mri-1.9.2(准备好,将在下一次git推送时迁移)

UPDATE2:

错误跟踪

 安装hoe(2.9.4)/usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/installer.rb:170:in`install' :hoe需要RubyGems版本> = 1.4。试试'gem update --system'来更新RubyGems本身。 (Gem :: InstallError)$ / usr / ruby​​1.9.2 / lib / ruby​​ / gems / 1.9 / gems / bin / 
来自/usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/installer.rb:55:in`block in run'
from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/spec_set.rb:12:in`在每个
中从/ usr / ruby1.9.2 / lib / ruby​​ / gems / 1.9.1 / gems / bundler-1.0.7 / lib / bundler / spec_set.rb:12:在'每个'中
来自/usr/ruby1.9.2/lib/ ruby / gems / 1.9.1 / gems / bundler-1.0.7 / lib / bundler / spec_set.rb:12:来自/usr/ruby1.9.2/lib/ruby/gems/1.9的`each'
。 1 / gems / bundler-1.0.7 / lib / bundler / installer.rb:44:在'run'中
从/usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler- 1.0.7 / lib / bundler / installer.rb:8:在`install'中$ / $ b / from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/ bundler / cli.rb:225:在`install'中$ / $ b / from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor/ task.rb:22:在`run'中运行
from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor/invocation.rb:118:in` invoke_task'
from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor.rb:246:in`dispatch'$ b $ / from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor/base.rb:389:in`start'
from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/bin/bundle:13:in`< top(required)>'
from / usr /ruby1.9.2/bin/bundle:19:in`load'
from /usr/ruby1.9.2/bin/bundle:19:in`< main>'
FAILED:http:// devcenter.heroku.com/articles/bundler
!Heroku推送被拒绝,未能通过Bundler安装宝石


解决方案

好吧我解决了它。



锄头根本不适用于heroku,因为它们不支持新版本的rubygems这样的痛苦与heroku)



我在这里添加了锄头宝石:

  group:test,:development do 
gemhoe
end

并在我的控制台中输入以下内容:

heroku config:add BUNDLE_WITHOUT = development:test


I am getting the following error when migrating to Heroku.

Installing hoe (2.9.4) /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/installer.rb:170:in >install': hoe requires RubyGems version >= 1.4. Try 'gem update --system' to update RubyGems itself. (Gem::InstallError)`

It sais that the ruby gems version is out of date. Somebody knows how i could solve this problem?

using rails 3.0.5 with ruby 1.9.2

bundler

Using rake (0.8.7) 
Using RedCloth (4.2.2) 
Using abstract (1.0.0) 
Using activesupport (3.0.5) 
Using builder (2.1.2) 
Using i18n (0.5.0) 
Using activemodel (3.0.5) 
Using erubis (2.6.6) 
Using rack (1.2.2) 
Using rack-mount (0.6.14) 
Using rack-test (0.5.7) 
Using tzinfo (0.3.26) 
Using actionpack (3.0.5) 
Using mime-types (1.16) 
Using polyglot (0.3.1) 
Using treetop (1.4.9) 
Using mail (2.2.17) 
Using actionmailer (3.0.5) 
Using arel (2.0.9) 
Using activerecord (3.0.5) 
Using activeresource (3.0.5) 
Using archive-tar-minitar (0.5.2) 
Using authlogic (2.1.6) 
Using xml-simple (1.0.15) 
Using aws-s3 (0.6.2) 
Using bcrypt-ruby (2.1.4) 
Using block_helpers (0.3.3) 
Using bundler (1.0.10) 
Using columnize (0.3.2) 
Using diff-lcs (1.1.2) 
Using json (1.5.1) 
Using gherkin (2.3.6) 
Using term-ansicolor (1.0.5) 
Using cucumber (0.10.2) 
Using nokogiri (1.4.4) 
Using cucumber-rails (0.4.1) 
Using daemons (1.0.10) 
Using database_cleaner (0.6.7) 
Using factory_girl (1.3.3) 
Using faker (0.9.5) 
Using fastercsv (1.5.4) 
Using formtastic (1.2.3) 
Using gem_plugin (0.2.3) 
Using haml (3.0.25) 
Using hoe (2.9.4) 
Using thor (0.14.6) 
Using railties (3.0.5) 
Using rails (3.0.5) 
Using kaminari (0.12.0) 
Using ruby_core_source (0.1.5) 
Using linecache19 (0.5.12) 
Using meta_search (1.0.4) 
Using mongrel (1.2.0.pre2) 
Using paperclip (2.3.11) 
Using pg (0.11.0) 
Using pickle (0.4.7) 
Using populator (1.0.0) 
Using render_inheritable (1.0.0) 
Using rspec-core (2.5.1) 
Using rspec-expectations (2.5.0) 
Using rspec-mocks (2.5.0) 
Using rspec (2.5.0) 
Using rspec-rails (2.5.0) 
Using ruby-debug-base19 (0.11.25) 
Using ruby-debug19 (0.11.6) 
Using test-unit (1.2.3) 
Using will_paginate (3.0.pre2) 
Using typus (3.0.10) from https://github.com/fesplugas/typus.git (at master) 
Using webrat (0.7.3)

UPDATE:

heroku stack

aspen-mri-1.8.6
* bamboo-ree-1.8.7
bamboo-mri-1.9.2 (prepared, will migrate on next git push)

UPDATE2:

error trace

Installing hoe (2.9.4) /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/installer.rb:170:in `install': hoe requires RubyGems version >= 1.4. Try 'gem update --system' to update RubyGems itself. (Gem::InstallError)
    from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/source.rb:95:in `install'
    from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/installer.rb:55:in `block in run'
    from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/spec_set.rb:12:in `block in each'
    from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/spec_set.rb:12:in `each'
    from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/spec_set.rb:12:in `each'
    from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/installer.rb:44:in `run'
    from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/installer.rb:8:in `install'
    from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/cli.rb:225:in `install'
    from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor/task.rb:22:in `run'
    from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
    from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor.rb:246:in `dispatch'
    from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor/base.rb:389:in `start'
    from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/bin/bundle:13:in `<top (required)>'
    from /usr/ruby1.9.2/bin/bundle:19:in `load'
    from /usr/ruby1.9.2/bin/bundle:19:in `<main>'
   FAILED: http://devcenter.heroku.com/articles/bundler
!Heroku push rejected, failed to install gems via Bundler

解决方案

Ok i solved it.

hoe simply doesnt work with heroku because they dont support new versions of rubygems (this is such a pain with heroku)

I added the hoe gem here:

group :test, :development do
  gem "hoe"
end

and typed the following in my console:

heroku config:add BUNDLE_WITHOUT="development:test"

这篇关于获取错误:在部署/迁移到Heroku时更新rubygems的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆