updating Rubygems 1.3.5 to 1.3.7, using pik

Lawrence C's Avatar

Lawrence C

20 May, 2010 05:14 AM

I've finally gotten around to updating my Ruby 1.8.6 and 1.9.1p243 RubyGems to version 1.3.7 and I ran into an error or two. My environment is:

`>pik gem environment
ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]

RubyGems Environment:
  - RUBYGEMS VERSION: 1.3.5
  - RUBY VERSION: 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]
  - INSTALLATION DIRECTORY: C:/lan/Ruby-1.8/lib/ruby/gems/1.8
  - RUBY EXECUTABLE: C:/lan/Ruby-1.8/bin/ruby.exe
  - EXECUTABLE DIRECTORY: C:/lan/Ruby-1.8/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86-mswin32-60
  - GEM PATHS:
     - C:/lan/Ruby-1.8/lib/ruby/gems/1.8
     - C:/Documents and Settings/Lawrence/.gem/ruby/1.8
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => true
     - :bulk_threshold => 1000
     - "gem" => "--remote --gen-rdoc --ri"
     - :sources => ["http://rubygems.org", "http://gemcutter.org", "http://gems.rubyforge.org/"]
  - REMOTE SOURCES:
     - http://rubygems.org
     - http://gemcutter.org
     - http://gems.rubyforge.org/

ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32]

RubyGems Environment:
  - RUBYGEMS VERSION: 1.3.5
  - RUBY VERSION: 1.9.1 (2009-07-16 patchlevel 243) [i386-mingw32]
  - INSTALLATION DIRECTORY: c:/lan/Ruby19/lib/ruby/gems/1.9.1
  - RUBY EXECUTABLE: c:/lan/Ruby19/bin/ruby.exe
  - EXECUTABLE DIRECTORY: c:/lan/Ruby19/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86-mingw32
  - GEM PATHS:
     - c:/lan/Ruby19/lib/ruby/gems/1.9.1
     - C:/Documents and Settings/Lawrence/.gem/ruby/1.9.1
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => true
     - :bulk_threshold => 1000
     - "gem" => "--remote --gen-rdoc --ri"
     - :sources => ["http://rubygems.org", "http://gemcutter.org", "http://gems.rubyforge.org/"]
  - REMOTE SOURCES:
     - http://rubygems.org
     - http://gemcutter.org
     - http://gems.rubyforge.org/

I'm running mswindows XP SP3
Intel Quad Core CPU

I had to change my remote URI for gems first, then when I executed:

`>pik gem update --system
ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]

Updating RubyGems
ERROR:  http://rubygems.org does not appear to be a repository
ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
    Errno::E10013: An attempt was made to access a socket in a way forbidden by its access permissions. - connect(2) (http://rubygems.org/yaml)
        C:/lan/Ruby-1.8/lib/ruby/site_ruby/1.8/rubygems/remote_fetcher.rb:172:in `fetch_path'
        C:/lan/Ruby-1.8/lib/ruby/site_ruby/1.8/rubygems/remote_fetcher.rb:179:in `fetch_size'
        C:/lan/Ruby-1.8/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:153:in `legacy_repos'
        C:/lan/Ruby-1.8/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:145:in `reject'
        C:/lan/Ruby-1.8/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:145:in `legacy_repos'
        C:/lan/Ruby-1.8/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:264:in `warn_legacy'
        C:/lan/Ruby-1.8/lib/ruby/site_ruby/1.8/rubygems/commands/update_command.rb:171:in `which_to_update'
        C:/lan/Ruby-1.8/lib/ruby/site_ruby/1.8/rubygems/commands/update_command.rb:161:in `each'
        C:/lan/Ruby-1.8/lib/ruby/site_ruby/1.8/rubygems/commands/update_command.rb:161:in `which_to_update'
        C:/lan/Ruby-1.8/lib/ruby/site_ruby/1.8/rubygems/commands/update_command.rb:75:in `execute'
        C:/lan/Ruby-1.8/lib/ruby/site_ruby/1.8/rubygems/command.rb:257:in `invoke'
        C:/lan/Ruby-1.8/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:132:in `process_args'
        C:/lan/Ruby-1.8/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:102:in `run'
        C:/lan/Ruby-1.8/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:58:in `run'
        C:/lan/Ruby-1.8/bin/gem:21

ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32]

Updating RubyGems
Updating rubygems-update
Successfully installed rubygems-update-1.3.7
Updating RubyGems to 1.3.7
Installing RubyGems 1.3.7
RubyGems 1.3.7 installed
Successfully uninstalled gemcutter-0.1.8

n++=== 1.3.7 / 2010-05-13

NOTE:

http://rubygems.org is now the default source for downloading gems.

... skipped info ...

------------------------------------------------------------------------------

RubyGems installed the following executables:
        c:/lan/Ruby19/lib/ruby/gems/1.9.1/gems/rubygems-update-1.3.5/bin/gem

RubyGems system software updated

RubyGems for Ruby 1.9.1p243 appears to have updated while Ruby 1.8.6 failed, yet when I query Rubygems:

`>pik gem --version
ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]

1.3.5

ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32]

1.3.5

So, what am I tripping over this time?

Thanks for any and all help.
LawrenceC

  1. Support Staff 1 Posted by Nick Quaranto on 27 May, 2010 02:25 AM

    Nick Quaranto's Avatar

    This post got marked as spam for some reason, so sorry about the delay.

    I haven't really used pik before, it sounds like rvm though. I would make sure you're on the latest version of that and report this to the maintainer of that project as well. As far as I can tell when you did gem update --system it did work...maybe you have another install of ruby that's conflicting with your path? Does which ruby (assuming you're in Cygwin) point to the right one?

  2. Support Staff 2 Posted by Eric Hodel on 27 May, 2010 08:14 PM

    Eric Hodel's Avatar
    Errno::E10013: An attempt was made to access a socket in a way forbidden by its access permissions. - connect(2) (http://rubygems.org/yaml)
    

    Looks like you have some kind of firewall interfering with RubyGems.

  3. Support Staff 3 Posted by Nick Quaranto on 17 Jul, 2010 08:33 PM

    Nick Quaranto's Avatar

    Considering this resolved, if there's been any update let us know!

  4. Nick Quaranto closed this discussion on 17 Jul, 2010 08:33 PM.

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