Updating RubyGems to 1.5.0? I Can't! [SELF-SOLVED]

hoornet's Avatar

hoornet

01 Feb, 2011 10:51 AM

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>

  1. 1 Posted by hoornet on 01 Feb, 2011 11:12 AM

    hoornet's Avatar

    Found a solution! The problem is rdoc.
    let's take a look at how I did it:

    C:\Windows\system32>ruby -v

    ruby 1.9.2p136 (2010-12-25) [i386-mingw32]

    C:\Windows\system32>gem update

    Updating 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 --version

    rdoc 3.5.1

    C:\Windows\system32>gem update --system

    Updating 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:

        C:/Ruby192/bin/gem
    

    SInce teh problem is most likely with non English code-tables, here is mine for the info:
    C:\Windows\system32>chcp

    Active code page: 852

    C:\Windows\system32>

    Hope it helps,
    Hoornet

  2. hoornet closed this discussion on 01 Feb, 2011 11:30 AM.

  3. Support Staff 2 Posted by Eric Hodel on 01 Feb, 2011 07:04 PM

    Eric Hodel's Avatar

    Yes, RDoc is the culprit here and upgrading will fix the message.

    Note that when the update process says RubyGems 1.5.0 installed that RubyGems 1.5 is fully functional.

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