Bug #4311
closedruby setup.sb fails to install ruby gems
Description
=begin
Ruby maintainers,
I don't know if this is a bug, or just user
incomprehension, but anyway...
After installing Ruby and downloading and unpacking
Ruby Gems, I changed to the rubygems-1.4.2 directory
(since no guidance had been given in the
instructions as to from where to run the next
command) and did
  ruby setup.rb
as instructed here:
  http://rubyonrails.org/download
I expected ruby to install ruby gems smoothly using
the contents of the setup.rb script.
That didn't happen.
There was an immediate problem:
  c:/OldC/Documents and Settings/xanthian/My Documents/Software Downloads/Ruby/rubygems-1.4.2/lib/rubygems/source_index.rb:62:in `installed_spec_directories': undefined method `path' for Gem:Module (NoMethodError)
This problem is important because it blocks the
installation of Ruby Gems and therefore also of
Ruby on Rails when the documented installation steps
are taken by a naive user.
I'm not sure how much of the rest of the output was
also error messages, but I suspect that all of it
was.
Below is the short command execution path from
command line start-up to the failing command,
followed by its output, followed by the contents of
the PATH environmental variable, followed by the
"ruby -v" output you requested.
I'm not quite sure the next couple of lines are
true, they may be out of date, or they may be
correct and just confusing. I'm running 64 bit
Windows 7 on an HP AMD 64 bit CPU mini-tower system.
The Windows 7 OS was installed at the factory.
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
C:\Users\xanthian>cd "c:\OldC\Documents and Settings\xanthian\My Documents\Software Downloads\Ruby\rubygems-1.4.2"
c:\OldC\Documents and Settings\xanthian\My Documents\Software Downloads\Ruby\rubygems-1.4.2>ruby setup.rb
c:/OldC/Documents and Settings/xanthian/My Documents/Software Downloads/Ruby/rubygems-1.4.2/lib/rubygems/source_index.rb:62:in installed_spec_directories': undefined method path' for Gem:Module (NoMethodError)
from c:/OldC/Documents and Settings/xanthian/My Documents/Software Downloads/Ruby/rubygems-1.4.2/lib/rubygems/source_index.rb:52:in from_installed_gems' from c:/OldC/Documents and Settings/xanthian/My Documents/Software Downloads/Ruby/rubygems-1.4.2/lib/rubygems.rb:914:in source_index'
from c:/OldC/Documents and Settings/xanthian/My Documents/Software Downloads/Ruby/rubygems-1.4.2/lib/rubygems/gem_path_searcher.rb:83:in `init_gemspecs'
     from c:/OldC/Documents and Settings/xanthian/My Documents/Software Downloads/Ruby/rubygems-1.4.2/lib/rubygems/gem_path_searcher.rb:13:in `initialize'
     from c:/OldC/Documents and Settings/xanthian/My Documents/Software Downloads/Ruby/rubygems-1.4.2/lib/rubygems.rb:873:in `new'
     from c:/OldC/Documents and Settings/xanthian/My Documents/Software Downloads/Ruby/rubygems-1.4.2/lib/rubygems.rb:873:in `searcher'
     from c:/OldC/Documents and Settings/xanthian/My Documents/Software Downloads/Ruby/rubygems-1.4.2/lib/rubygems.rb:495:in `find_files'
     from c:/OldC/Documents and Settings/xanthian/My Documents/Software Downloads/Ruby/rubygems-1.4.2/lib/rubygems.rb:1034:in `load_plugins'
     from c:/OldC/Documents and Settings/xanthian/My Documents/Software Downloads/Ruby/rubygems-1.4.2/lib/rubygems/gem_runner.rb:84:in `<top (required)>'
     from <internal:lib/rubygems/custom_require>:29:in `require'
     from <internal:lib/rubygems/custom_require>:29:in `require'
     from setup.rb:25:in `<main>'
c:\OldC\Documents and Settings\xanthian\My Documents\Software Downloads\Ruby\rubygems-1.4.2>PATH
PATH=C:\Ruby192\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Windows Live\Shared
c:\OldC\Documents and Settings\xanthian\My Documents\Software Downloads\Ruby\rubygems-1.4.2>ruby -v
ruby 1.9.2p136 (2010-12-25) [i386-mingw32]
Any guidance for overcoming this obstacle, sent to
me (a URI for the response will suffice) at
xanthian@well.com would be
appreciated.
Why? There are over 6 billion accessible web pages,
so I tend not to revisit many that I find
interesting only for a moment.
This case is one of the "only for a moment" ones.
My local bus system has moved its interactive route
look-up system to Ruby, which is sadistic considering
the limited distribution of Ruby and the near
impossibility of installing it for the
non-programmer user.
Oh, and if this is all due to Windows 7 using file
path names with embedded spaces, then it is Ruby that
needs repair, not Windows 7.
MS-Windows had embedded spaces in file path names long
before Ruby was conceived.
The *nix convention that spaces, a common separator in
typed phrases meant to convey a single concept, are
always token separators in command lines is equally
ill chosen as any number of MS-Windows bogosities.
xanthian.
=end
        
           Updated by drbrain (Eric Hodel) almost 15 years ago
          Updated by drbrain (Eric Hodel) almost 15 years ago
          
          
        
        
      
      =begin
On Jan 23, 2011, at 19:56, Kent Paul Dolan redmine@ruby-lang.org wrote:
After installing Ruby and downloading and unpacking
Ruby Gems, I changed to the rubygems-1.4.2 directory
(since no guidance had been given in the
instructions as to from where to run the next
command) and didruby setup.rbas instructed here:
http://rubyonrails.org/downloadI expected ruby to install ruby gems smoothly using
the contents of the setup.rb script.That didn't happen
Known issue.
See http://rubygems.rubyforge.org/rubygems-update/History_txt.html
After installing Ruby and downloading and unpacking
Ruby Gems, I changed to the rubygems-1.4.2 directory
(since no guidance had been given in the
instructions as to from where to run the next
command) and did
ruby setup.rb
as instructed here:
http://rubyonrails.org/download
I expected ruby to install ruby gems smoothly using
the contents of the setup.rb script.
That didn't happen
        
           Updated by sorah (Sorah Fukumori) almost 15 years ago
          Updated by sorah (Sorah Fukumori) almost 15 years ago
          
          
        
        
      
      - Assignee set to drbrain (Eric Hodel)
=begin
=end
        
           Updated by usa (Usaku NAKAMURA) almost 15 years ago
          Updated by usa (Usaku NAKAMURA) almost 15 years ago
          
          
        
        
      
      - Status changed from Open to Assigned
=begin
=end
        
           Updated by drbrain (Eric Hodel) over 14 years ago
          Updated by drbrain (Eric Hodel) over 14 years ago
          
          
        
        
      
      - Status changed from Assigned to Closed
=begin
Fixed by RubyGems 1.5.0.
=end