Downgrading rubygems from 1.8.5 to 1.3.7 gives an error

Bill L's Avatar

Bill L

02 Jun, 2011 06:42 AM

I'm trying to follow the instructions for downgrading rubygems from this env:

$ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.5
- RUBY VERSION: 1.9.2 (2010-08-18 patchlevel 0) [x86_64-linux]
- INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.9.1
- RUBY EXECUTABLE: /usr/local/bin/ruby
- EXECUTABLE DIRECTORY: /usr/local/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
 - /usr/local/lib/ruby/gems/1.9.1
 - /home/ops/.gem/ruby/1.9.1
- GEM CONFIGURATION:
 - :update_sources => true
 - :verbose => true
 - :benchmark => false
 - :backtrace => false
 - :bulk_threshold => 1000
 - "gem" => "--no-rdoc --no-ri"
- REMOTE SOURCES:
 - http://rubygems.org/

back to 1.3.7 to assist in debugging some probably unrelated issues. But it fails with this error:

$ sudo gem update --system 1.3.7
Updating rubygems-update
Successfully installed rubygems-update-1.3.7
Installing RubyGems 1.3.7
/usr/local/lib/ruby/gems/1.9.1/gems/rubygems-update-1.3.7/lib/rubygems/source_index.rb:68:in `installed_spec_directories':    undefined method `path' for Gem:Module (NoMethodError)
from /usr/local/lib/ruby/gems/1.9.1/gems/rubygems-update-1.3.7/lib/rubygems/source_index.rb:58:in `from_installed_gems'
from /usr/local/lib/ruby/gems/1.9.1/gems/rubygems-update-1.3.7/lib/rubygems.rb:883:in `source_index'
from /usr/local/lib/ruby/gems/1.9.1/gems/rubygems-update-1.3.7/lib/rubygems/gem_path_searcher.rb:81:in `init_gemspecs'
from /usr/local/lib/ruby/gems/1.9.1/gems/rubygems-update-1.3.7/lib/rubygems/gem_path_searcher.rb:13:in `initialize'
from /usr/local/lib/ruby/gems/1.9.1/gems/rubygems-update-1.3.7/lib/rubygems.rb:841:in `new'
from /usr/local/lib/ruby/gems/1.9.1/gems/rubygems-update-1.3.7/lib/rubygems.rb:841:in `block in searcher'
from <internal:prelude>:10:in `synchronize'
from /usr/local/lib/ruby/gems/1.9.1/gems/rubygems-update-1.3.7/lib/rubygems.rb:840:in `searcher'
from /usr/local/lib/ruby/gems/1.9.1/gems/rubygems-update-1.3.7/lib/rubygems.rb:479:in `find_files'
from /usr/local/lib/ruby/gems/1.9.1/gems/rubygems-update-1.3.7/lib/rubygems.rb:983:in `load_plugins'
from /usr/local/lib/ruby/gems/1.9.1/gems/rubygems-update-1.3.7/lib/rubygems.rb:1139:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from setup.rb:24:in `<main>'
  1. Support Staff 1 Posted by Luis Lavena on 03 Jun, 2011 03:28 PM

    Luis Lavena's Avatar

    Hello,

    While RubyGems 1.3.7 works on Ruby 1.9.x, it can't be installed using these methods.

    I recommend you downgrade instead to 1.7.2 or 1.6.2 which is known they successfully install on Ruby 1.9.x

    Please let us know if that solve your issues.

  2. 2 Posted by Bill L on 03 Jun, 2011 04:53 PM

    Bill L's Avatar

    OK, thanks.

    It would be helpful if this limitation was more clearly spelled out on the page that talks about upgrading and downgrading. I was using the example almost exactly as given, so it was surprising that it didn't work.

    http://rubygems.rubyforge.org/rubygems-update/UPGRADING_rdoc.html

  3. Support Staff 3 Posted by Luis Lavena on 03 Jun, 2011 06:06 PM

    Luis Lavena's Avatar

    The thing is that it worked for me under RVM:

    https://gist.github.com/1006811

    And also updating the system version of Ruby that came with Snow Leopard:

    https://gist.github.com/1006818

    So perhaps there is something else interfering there?

  4. Support Staff 4 Posted by Luis Lavena on 03 Jun, 2011 06:15 PM

    Luis Lavena's Avatar

    Hello,

    Sorry I tested against 1.8.7, not 1.9.x

    With 1.9.2 I can reproduce the issue you mention:

    https://gist.github.com/1006834

    And I've created the proper bug report for RubyGems:

    http://rubyforge.org/tracker/index.php?func=detail&amp;aid=29249&am...

    Thank you for your report.

  5. 5 Posted by akshay Bhat on 20 Oct, 2011 10:52 AM

    akshay Bhat's Avatar
  6. Support Staff 6 Posted by Nick Quaranto on 21 Oct, 2011 05:11 PM

    Nick Quaranto's Avatar

    Sounds like this is resolved, closing it out!

  7. Nick Quaranto closed this discussion on 21 Oct, 2011 05:11 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

23 Oct, 2014 05:37 PM
21 Oct, 2014 10:47 AM
18 Oct, 2014 08:39 PM
16 Oct, 2014 12:41 PM
06 Oct, 2014 02:30 PM