Bug #2433: Ruby gem update --system /gem install [any_gem_name] ERROR
http://redmine.ruby-lang.org/issues/show/2433

Author: Sergueï Cambour
Status: Open, Priority: Normal
ruby -v: 1.8.6, 1.8.7

No matter on which OS you are, - XP Family, XP Pro or Ubuntu 9.10. Noo matter if you have firewall 'hyper-sensitive' or proxy. When trying to do gem update --system or even when trying to install a new gem like 'gem install [gem_name] I always got the below error:
[code]
serge@serge-laptop:~$ sudo gem install heroku
ERROR:  Error installing heroku:
	invalid gem format for /usr/lib/ruby/gems/1.8/cache/heroku-1.4.gem

serge@serge-laptop:~$ ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [i486-linux]
serge@serge-laptop:~$ gem environment
RubyGems Environment:
  - RUBYGEMS VERSION: 1.3.5
  - RUBY VERSION: 1.8.7 (2009-06-12 patchlevel 174) [i486-linux]
  - INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8
  - RUBY EXECUTABLE: /usr/bin/ruby1.8
  - EXECUTABLE DIRECTORY: /usr/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86-linux
  - GEM PATHS:
     - /usr/lib/ruby/gems/1.8
     - /home/serge/.gem/ruby/1.8
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
     - :sources => ["http://gems.rubyforge.org/", "http://gemcutter.org", "http://gemcutter.org", "http://gemcutter.org"]
  - REMOTE SOURCES:
     - http://gems.rubyforge.org/
     - http://gemcutter.org
     - http://gemcutter.org
     - http://gemcutter.org
serge@serge-laptop:~$ 


[/code]


----------------------------------------
http://redmine.ruby-lang.org