Bugs item #26801, was opened at 2009-07-30 11:27
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=575&aid=26801&group_id=126
Category: `gem` commands (other)
Group: v1.3.x
Status: Open
Resolution: None
Priority: 3
Submitted By: Rainer Wolf (rainer42)
Assigned to: Nobody (None)
Summary: "gem update --system" breaks rubygems under Windows XP using
"mingw32-ruby-1.9.1-wxruby-2.0.0-setup.exe"
Initial Comment:
I have a Ruby installation with wxRuby on Windows XP using this installer:
mingw32-ruby-1.9.1-wxruby-2.0.0-setup.exe
I typed
gem -v
and found out that I was rubygems 1.3.1. So I typed:
gem update --system
This was the result:
---begin---
Updating RubyGems
Updating rubygems-update
Successfully installed rubygems-update-1.3.5
:0:Warning: Gem::SourceIndex#search support for String patterns is
deprecated
Updating RubyGems to 1.3.5
Installing RubyGems 1.3.5
c:/ruby/lib/ruby/gems/1.9.1/gems/rubygems-update-1.3.5/lib/rubygems/
config_file.
rb:39:in `new': wrong number of arguments (5 for 4) (ArgumentError)
from c:/ruby/lib/ruby/gems/1.9.1/gems/rubygems-update-1.3.5/
lib/rubygems
/config_file.rb:39:in `<class:ConfigFile>'
from c:/ruby/lib/ruby/gems/1.9.1/gems/rubygems-update-1.3.5/
lib/rubygems
/config_file.rb:12:in `<top (required)>'
from c:/ruby/lib/ruby/gems/1.9.1/gems/rubygems-update-1.3.5/
lib/rubygems
/gem_runner.rb:8:in `require'
from c:/ruby/lib/ruby/gems/1.9.1/gems/rubygems-update-1.3.5/
lib/rubygems
/gem_runner.rb:8:in `<top (required)>'
from setup.rb:25:in `require'
from setup.rb:25:in `<main>'
RubyGems system software updated
--end--
Now, when I type
gem -v
I get this:
---begin---
c:/ruby/lib/ruby/gems/1.9.1/gems/rubygems-update-1.3.5/lib/rubygems/
config_file.
rb:39:in `new': wrong number of arguments (5 for 4) (ArgumentError)
from c:/ruby/lib/ruby/gems/1.9.1/gems/rubygems-update-1.3.5/
lib/rubygems
/config_file.rb:39:in `<class:ConfigFile>'
from c:/ruby/lib/ruby/gems/1.9.1/gems/rubygems-update-1.3.5/
lib/rubygems
/config_file.rb:12:in `<top (required)>'
from c:/ruby/lib/ruby/gems/1.9.1/gems/rubygems-update-1.3.5/
lib/rubygems
/gem_runner.rb:8:in `require'
from c:/ruby/lib/ruby/gems/1.9.1/gems/rubygems-update-1.3.5/
lib/rubygems
/gem_runner.rb:8:in `<top (required)>'
from c:/ruby/bin/gem.bat:17:in `require'
from c:/ruby/bin/gem.bat:17:in `<main>'
---end---
Does this mean I have broken rubygems on mingw32 by typing "gem update
--system"? Typing
"gem search wxruby-ruby19 --remote"
or trying to install a gem - any gem - gives me the same argument
error.
Since rubygems was unusable, I uninstalled and reinstalled Ruby, using rubygems
1.3.1 for the time being. So this bug is not "lethal".
Kind regards,
Rainer
----------------------------------------------------------------------
>Comment By: Luis Lavena (luislavena)
Date: 2009-07-30 12:13
Message:
As stated by wxRuby developers, there were some C API changes or similar that
made things not to work between patchlevels (in similar fashion with 1.8.7).
Is safe to manually install RubyGems on top of 1.9.1. In my experience RubyGems
never installed properly on 1.9 using gem update --system.
For The official One-Click Installer we update it using ruby setup.rb and
works, so should work over wxRuby installer too.
Cheers.
----------------------------------------------------------------------
Comment By: Rainer Wolf (rainer42)
Date: 2009-07-30 12:09
Message:
Hello Luis,
thanks for the quick reply. Two questions about this:
Up until now, I never ever had a problem with updating
rubygems. In your opinion, is it wise to do a manual
installation of rubygems as described in your first link?
Second: Thanks for the link to the proper installer, but I
have used p129 before. Couldn't get the wxRuby gem to work
with that under Windows XP:
http://www.ruby-forum.com/topic/187872#new
So I switched to p0 with the unsupported installer mentioned
above. Is your installer of p129 known to work with the
wxRuby gem?
----------------------------------------------------------------------
Comment By: Luis Lavena (luislavena)
Date: 2009-07-30 11:40
Message:
When automatic installation fails, you can fall back to manual installation.
http://blog.mmediasys.com/2008/08/04/problems-with-rubygems-find-here-some-handy-tips/
Keep in mind that Ruby version built by wxRuby team is not supported and is an
old patchlevel (not latest stable).
Please use proper new One-Click Ruby Installers for 1.9.1:
http://blog.mmediasys.com/2009/06/28/rubyinstaller-preview1-released/
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=575&aid=26801&group_id=126
_______________________________________________
Rubygems-developers mailing list
http://rubyforge.org/projects/rubygems
[email protected]
http://rubyforge.org/mailman/listinfo/rubygems-developers