Updating RubyGems to 1.5.0? I Can't! [SELF-SOLVED]
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
The system cannot find the path specified.
C:\Windows\system32>ruby -v
ruby 1.9.2p136 (2010-12-25) [i386-mingw32]
C:\Windows\system32>
C:\Windows\system32>gem update --system
Updating RubyGems
Updating RubyGems to 1.5.0
Installing RubyGems 1.5.0
RubyGems 1.5.0 installed
ERROR: While executing gem ...
(Encoding::UndefinedConversionError)
U+2018 from UTF-8 to CP852
I also tried this:
C:\Windows\system32>gem install rubygems-update
Successfully installed rubygems-update-1.5.0
1 gem installed
Installing ri documentation for rubygems-update-1.5.0...
Installing RDoc documentation for rubygems-update-1.5.0...
...and...
C:\Windows\system32>update_rubygems
RubyGems 1.5.0 installed
ERROR: While executing gem ...
(Encoding::UndefinedConversionError)
C:\Windows\system32>
Comments are currently closed for this discussion. You can start a new one.
2 Posted by hoornet on 01 Feb, 2011 11:12 AM
Found a solution! The problem is rdoc.
let's take a look at how I did it:
C:\Windows\system32>ruby -vruby 1.9.2p136 (2010-12-25) [i386-mingw32]
C:\Windows\system32>gem updateUpdating installed gems
Updating bundler
Fetching: bundler-1.0.10.gem (100%)
Successfully installed bundler-1.0.10
Updating mail
Fetching: mail-2.2.15.gem (100%)
Successfully installed mail-2.2.15
Updating rdoc
Fetching: rdoc-3.5.1.gem (100%)
RDoc 2.5 did not save method parameters, so you should upgrade your rdoc-dat
gem to a version >= 2.5.3.
To have ri data for core and stdlib you'll need to:
gem install rdoc-data
then run:
rdoc-data --install
To have ri data for you gems you'll also need to run:
gem rdoc --all --overwrite
If you don't want to rebuild the rdoc for "gem server", add --no-rdoc.
Successfully installed rdoc-3.5.1
Gems updated: bundler, mail, rdoc
Installing ri documentation for bundler-1.0.10...
Installing ri documentation for mail-2.2.15...
Installing ri documentation for rdoc-3.5.1...
Installing RDoc documentation for bundler-1.0.10...
Installing RDoc documentation for mail-2.2.15...
Installing RDoc documentation for rdoc-3.5.1...
C:\Windows\system32>
Updating installed gems
Nothing to update
C:\Windows\system32>rdoc --versionrdoc 3.5.1
C:\Windows\system32>gem update --systemUpdating RubyGems
Updating RubyGems to 1.5.0
Installing RubyGems 1.5.0
RubyGems 1.5.0 installed
´╗┐=== 1.5.0 / 2011-01-31
Major Enhancements:
... BUNCH OF TEXT...
RubyGems installed the following executables:
SInce teh problem is most likely with non English code-tables, here is mine for the info:
C:\Windows\system32>chcpActive code page: 852
C:\Windows\system32>
Hope it helps,
Hoornet
hoornet closed this discussion on 01 Feb, 2011 11:30 AM.
Support Staff 3 Posted by Eric Hodel on 01 Feb, 2011 07:04 PM
Yes, RDoc is the culprit here and upgrading will fix the message.
Note that when the update process says
RubyGems 1.5.0 installedthat RubyGems 1.5 is fully functional.