views:

643

answers:

3

Hi,

Command gem install heroku failed with following messsage and I have tried the solution here , but failed also. So , is there any other way i can install heroku?

WARNING: RubyGems 1.2+ index not found for: http://gems.rubyforge.org/

RubyGems will revert to legacy indexes degrading performance. ERROR: could not find gem heroku locally or in a repository

+3  A: 

you should be able to bypass the problem by downloading the heroku gem from rubygems.org and install from the local copy.

  1. go to http://rubygems.org/gems/heroku and click the download link to download version 1.8.5
  2. then move into the download folder and do a gem install --local heroku-1.8.5.gem ,but follow the instruction to install the dependency first
rubiii
dependencies. you're right. thanks for editing! didn't really think about that.
rubiii
+2  A: 

Seems like your Rubygems version is not up to date. Try sudo gem update --system and/or sudo gem install rubygems-update; sudo update_rubygems before trying to install the heroku gem.

daddz
+3  A: 

Updating the gem to version 1.3.6 seem solve the problem.

However, gem update --system does not work on Ubuntu platforms, and apt-get install rubygems1.8 always bring you to version 1.2.0.

Here is the trick to update your gems to latest one,1.3.6, by the time of writing:

sudo gem install rubygems-update
sudo update_rubygems

And the credit goes here.

Finally, by all means avoid installing the gems manually, my experience taught me.

pierr