Downgrading rubygems from 1.8.5 to 1.3.7 gives an error
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>'
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Luis Lavena on 03 Jun, 2011 03:28 PM
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.
3 Posted by Bill L on 03 Jun, 2011 04:53 PM
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
Support Staff 4 Posted by Luis Lavena on 03 Jun, 2011 06:06 PM
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?
Support Staff 5 Posted by Luis Lavena on 03 Jun, 2011 06:15 PM
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&aid=29249&am...
Thank you for your report.
6 Posted by akshay Bhat on 20 Oct, 2011 10:52 AM
Thank you
http://rubygems.rubyforge.org/rubygems-update/UPGRADING_rdoc.html
Helped
Support Staff 7 Posted by Nick Quaranto on 21 Oct, 2011 05:11 PM
Sounds like this is resolved, closing it out!
Nick Quaranto closed this discussion on 21 Oct, 2011 05:11 PM.