Wrong update directory written in your InstantRails update functions

Radu's Avatar

Radu

25 Jul, 2010 11:48 PM

Cannot update Rails; followed instructions step by step from Agile Web Development with Rails and instantrails.rubyforge.orb, as instructed; several tries, not luck. Here is the error message:

C:\InstantRailsInstallation\InstantRails-2.0>gem update --syst
Updating RubyGems...
ERROR: While executing gem ... (Gem::RemoteSourceException)

HTTP Response 301 fetching http://gems.rubyforge.org/yaml

Are you really better than others? Are you going to help? One always wonders.
Thank you, in any case.

  1. Support Staff 2 Posted by Nick Quaranto on 26 Jul, 2010 12:27 AM

    Nick Quaranto's Avatar

    Yikes, that stinks...I thought most versions of RubyGems just do a HEAD request to that file. Could you paste the output of gem env or gem -v ?

    For now you could upgrade manually by downloading the zip:

    http://rubygems.org/pages/download

  2. 3 Posted by Radu on 26 Jul, 2010 01:11 AM

    Radu's Avatar

    Here are the outputs of %>gem env and %>gem -v. I'll try your link shortly, thanks.

    C:\InstantRailsInstallation\InstantRails-2.0\rails_apps>gem env
    RubyGems Environment:
      - RUBYGEMS VERSION: 1.0.1 (1.0.1)
      - RUBY VERSION: 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
      - INSTALLATION DIRECTORY: C:/InstantRailsInstallation/InstantRails-2.0/ruby/lib/ruby/gems/1.8
      - RUBY EXECUTABLE: C:/InstantRailsInstallation/InstantRails-2.0/ruby/bin/ruby.exe
      - RUBYGEMS PLATFORMS:
        - ruby
        - x86-mswin32-60
      - GEM PATHS:
         - C:/InstantRailsInstallation/InstantRails-2.0/ruby/lib/ruby/gems/1.8
      - GEM CONFIGURATION:
         - :update_sources => true
         - :verbose => true
         - :benchmark => false
         - :backtrace => false
         - :bulk_threshold => 1000
      - REMOTE SOURCES:
         - http://gems.rubyforge.org
    
    C:\InstantRailsInstallation\InstantRails-2.0\rails_apps>gem -v
    1.0.1
    
    C:\InstantRailsInstallation\InstantRails-2.0\rails_apps>
    
  3. Support Staff 4 Posted by Eric Hodel on 26 Jul, 2010 09:01 PM

    Eric Hodel's Avatar

    The easiest way to update from such an old version of RubyGems is to download RubyGems by hand from here:

    http://rubyforge.org/projects/rubygems

    Follow the installation instructions in the release notes as if you were making a new install.

  4. 5 Posted by Leonid on 05 Aug, 2010 05:49 PM

    Leonid's Avatar

    I run into the same problem trying to upgrade my installation of InstantRails 2.0.

    C:\InstantRails2.0\ruby>gem env
    RubyGems Environment:
      - RUBYGEMS VERSION: 1.0.1 (1.0.1)
      - RUBY VERSION: 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
      - INSTALLATION DIRECTORY: C:/InstantRails2.0/ruby/lib/ruby/gems/1.8
      - RUBY EXECUTABLE: C:/InstantRails2.0/ruby/bin/ruby.exe
      - RUBYGEMS PLATFORMS:
        - ruby
        - x86-mswin32-60
      - GEM PATHS:
         - C:/InstantRails2.0/ruby/lib/ruby/gems/1.8
      - GEM CONFIGURATION:
         - :update_sources => true
         - :verbose => true
         - :benchmark => false
         - :backtrace => false
         - :bulk_threshold => 1000
         - :sources => ["http://gems.rubyforge.org/", "http://gems.github.com"]
      - REMOTE SOURCES:
         - http://gems.rubyforge.org/
         - http://gems.github.com
    

    I am confused by the installation instructions in the release notes at http://rubyforge.org/projects/rubygems. They state
    You may have sources set via ~/.gemrc, so you should replace http://gems.rubyforge.org with http://rubygems.org
    This comment seems to be Unix specific. I don't see .gemrc on my WinXP.

    Thanks

  5. Support Staff 6 Posted by Eric Hodel on 05 Aug, 2010 06:51 PM

    Eric Hodel's Avatar

    You can also use gem sources to alter rubygems sources.

  6. 7 Posted by Leonid on 05 Aug, 2010 08:10 PM

    Leonid's Avatar

    That leads to another error

    C:\InstantRails2.0\ruby>gem sources --add http://rubygems.org/

    ERROR:  While executing gem ... (Gem::RemoteSourceException)
        HTTP Response 302 fetching http://rubygems.org/yaml
  7. Support Staff 8 Posted by Eric Hodel on 05 Aug, 2010 10:30 PM

    Eric Hodel's Avatar

    You'll need to upgrade RubyGems first.

  8. 9 Posted by Leonid on 06 Aug, 2010 01:38 AM

    Leonid's Avatar

    What is the appropriate place in the overall directory structure where files need to be unzipped? Does it matter?
    See post #5 listing my current gem environment.
    Thanks

  9. Support Staff 10 Posted by Nick Quaranto on 14 Aug, 2010 03:59 PM

    Nick Quaranto's Avatar

    I would end up just removing InstantRails and download it from scratch. Either that, or use the RubyInstaller, which does all of this and actually works properly and is actively maintained. :)

    http://rubyinstaller.org/

    or

    http://rubygems.org/pages/download

  10. Nick Quaranto closed this discussion on 14 Aug, 2010 03:59 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