tag:help.rubygems.org,2010-01-19:/discussions/problems/617-downgrading-rubygems-from-185-to-137-gives-an-errorRubyGems.org: Discussion 2011-11-21T10:12:00Ztag:help.rubygems.org,2010-01-19:Comment/76033642011-06-02T06:42:44Z2011-06-02T06:42:48ZDowngrading rubygems from 1.8.5 to 1.3.7 gives an error<div><p>I'm trying to follow the instructions for downgrading rubygems
from this env:</p>
<pre>
<code>$ 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/</code>
</pre>
<p>back to 1.3.7 to assist in debugging some probably unrelated
issues. But it fails with this error:</p>
<pre>
<code>$ 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>'</code>
</pre></div>Bill Ltag:help.rubygems.org,2010-01-19:Comment/76033642011-06-03T15:28:57Z2011-06-03T15:28:57ZDowngrading rubygems from 1.8.5 to 1.3.7 gives an error<div><p>Hello,</p>
<p>While RubyGems 1.3.7 works on Ruby 1.9.x, it can't be installed
using these methods.</p>
<p>I recommend you downgrade instead to 1.7.2 or 1.6.2 which is
known they successfully install on Ruby 1.9.x</p>
<p>Please let us know if that solve your issues.</p></div>Luis Lavenatag:help.rubygems.org,2010-01-19:Comment/76033642011-06-03T16:53:36Z2011-06-03T16:53:37ZDowngrading rubygems from 1.8.5 to 1.3.7 gives an error<div><p>OK, thanks.</p>
<p>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.</p>
<p><a href=
"http://rubygems.rubyforge.org/rubygems-update/UPGRADING_rdoc.html">
http://rubygems.rubyforge.org/rubygems-update/UPGRADING_rdoc.html</a></p></div>Bill Ltag:help.rubygems.org,2010-01-19:Comment/76033642011-06-03T18:06:28Z2011-06-03T18:06:28ZDowngrading rubygems from 1.8.5 to 1.3.7 gives an error<div><p>The thing is that it worked for me under RVM:</p>
<p><a href=
"https://gist.github.com/1006811">https://gist.github.com/1006811</a></p>
<p>And also updating the system version of Ruby that came with Snow
Leopard:</p>
<p><a href=
"https://gist.github.com/1006818">https://gist.github.com/1006818</a></p>
<p>So perhaps there is something else interfering there?</p></div>Luis Lavenatag:help.rubygems.org,2010-01-19:Comment/76033642011-06-03T18:15:36Z2011-06-03T18:15:36ZDowngrading rubygems from 1.8.5 to 1.3.7 gives an error<div><p>Hello,</p>
<p>Sorry I tested against 1.8.7, not 1.9.x</p>
<p>With 1.9.2 I can reproduce the issue you mention:</p>
<p><a href=
"https://gist.github.com/1006834">https://gist.github.com/1006834</a></p>
<p>And I've created the proper bug report for RubyGems:</p>
<p><a href=
"http://rubyforge.org/tracker/index.php?func=detail&aid=29249&group_id=126&atid=575">
http://rubyforge.org/tracker/index.php?func=detail&amp;aid=29249&am...</a></p>
<p>Thank you for your report.</p></div>Luis Lavenatag:help.rubygems.org,2010-01-19:Comment/76033642011-10-20T10:52:17Z2011-10-20T10:52:18ZDowngrading rubygems from 1.8.5 to 1.3.7 gives an error<div><p>Thank you</p>
<p><a href=
"http://rubygems.rubyforge.org/rubygems-update/UPGRADING_rdoc.html">
http://rubygems.rubyforge.org/rubygems-update/UPGRADING_rdoc.html</a></p>
<p>Helped</p></div>akshay Bhattag:help.rubygems.org,2010-01-19:Comment/76033642011-10-21T17:11:50Z2011-10-21T17:11:50ZDowngrading rubygems from 1.8.5 to 1.3.7 gives an error<div><p>Sounds like this is resolved, closing it out!</p></div>Nick Quaranto