Bugs item #25777, was opened at 2009-05-04 17:11
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=25777&group_id=126

Category: RubyGems installer (setup.rb)
>Group: v1.3.x
>Status: Closed
>Resolution: Rejected
Priority: 3
Submitted By: Bryan Soto (bsoto)
>Assigned to: Daniel Berger (djberg96)
Summary: RDoc & Ri fail on both gem update and ruby setup.rb when using 
rdoc gem on MS Vista.

Initial Comment:
Microsoft Windows [Version 6.0.6001]
Copyright (c) 2006 Microsoft Corporation.  All rights reserved.

-----

C:\Users\bryan\Desktop\rubygems-1.3.3>ruby -v
ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]

-----

C:\Users\bryan\Desktop\rubygems-1.3.3>gem --version
1.3.2

-----

C:\Users\bryan>gem update --system
Updating RubyGems
Updating rubygems-update
Successfully installed rubygems-update-1.3.3
C:/ruby/lib/ruby/site_ruby/1.8/rubygems/commands/update_command.rb:103:Warning:
Gem::SourceIndex#search support for String patterns is deprecated
Updating RubyGems to 1.3.3
Installing RubyGems 1.3.3
Installing RubyGems
Installing gem executable
Removing old source_cache files
Removing old RubyGems RDoc and ri
Installing rubygems-1.3.3 ri into 
C:/ruby/lib/ruby/gems/1.8/doc/rubygems-1.3.3/ri
ERROR:  While executing gem ... (Errno::EACCES)
    Permission denied - ./Gem/Commands/cdesc-Commands.yaml

-----

C:\Users\bryan>rmdir /s /q C:\ruby\lib\ruby\gems\1.8\doc\rubygems-1.3.3

-----

C:\Users\bryan\Desktop\rubygems-1.3.3>ruby setup.rb
Installing RubyGems
Installing gem executable
Removing old source_cache files
Removing old RubyGems RDoc and ri
Installing rubygems-1.3.3 ri into 
C:/ruby/lib/ruby/gems/1.8/doc/rubygems-1.3.3/ri
ERROR:  While executing gem ... (Errno::EACCES)
    Permission denied - ./Gem/cdesc-Gem.yaml

-----

C:\Users\bryan\Desktop\rubygems-1.3.3>gem list --local rdoc

*** LOCAL GEMS ***

rdoc (2.4.3)
rdoc_html_templates (2.3.0)

C:\Users\bryan\Desktop\rubygems-1.3.3>gem uninstall rdoc rdoc_html_templates
Remove executables:
        rdoc, ri

in addition to the gem? [Yn]  y
Removing rdoc
Removing ri

You have requested to uninstall the gem:
        rdoc-2.4.3
rdoc_html_templates-2.3.0 depends on [rdoc (~> 2.3)]
If you remove this gems, one or more dependencies will not be met.
Continue with Uninstall? [Yn]  y
Successfully uninstalled rdoc-2.4.3
Successfully uninstalled rdoc_html_templates-2.3.0

-----

C:\Users\bryan\Desktop\rubygems-1.3.3>rmdir /s /q 
C:\ruby\lib\ruby\gems\1.8\doc\rubygems-1.3.3

-----

C:\Users\bryan\Desktop\rubygems-1.3.3>update_rubygems
Installing RubyGems 1.3.3
Installing RubyGems
Installing gem executable
Removing old source_cache files
Removing old RubyGems RDoc and ri
Installing rubygems-1.3.3 ri into 
C:/ruby/lib/ruby/gems/1.8/doc/rubygems-1.3.3/ri
Installing rubygems-1.3.3 rdoc into 
C:/ruby/lib/ruby/gems/1.8/doc/rubygems-1.3.3/rdoc

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

= Announce: RubyGems Release 1.3.3

... snipped ...

RubyGems installed the following executables:
        C:/ruby/bin/gem

-----

C:\Users\bryan\Desktop\rubygems-1.3.3>gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 1.3.3
  - RUBY VERSION: 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]
  - INSTALLATION DIRECTORY: C:/ruby/lib/ruby/gems/1.8
  - RUBY EXECUTABLE: C:/ruby/bin/ruby.exe
  - EXECUTABLE DIRECTORY: C:/ruby/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86-mswin32-60
  - GEM PATHS:
     - C:/ruby/lib/ruby/gems/1.8
     - C:/Users/bryan/.gem/ruby/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";, 
"http://gems.github.com";]
  - REMOTE SOURCES:
     - http://gems.rubyforge.org/
     - http://gems.github.com
     - http://gems.github.com



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

>Comment By: Daniel Berger (djberg96)
Date: 2009-05-05 20:38

Message:
The only thing I can think of is that some other process had the file open when 
you tried to update rubygems, which would cause the same error.

I'm going to close this one out for now. If it pops up again and you can narrow 
it down, go ahead and re-open it.

Regards,

Dan

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

Comment By: Bryan Soto (bsoto)
Date: 2009-05-05 20:32

Message:
No luck reproducing... Just one of those odd things, I 
suppose. Unless you have any ideas, I guess there's nothing 
more to be done.

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

Comment By: Bryan Soto (bsoto)
Date: 2009-05-05 15:47

Message:
Full Control, Modify, Read & Execute, Read and Write. My 
apologies. I forgot to note that the above command line 
session was run from a command prompt as Administrator.

I originally received the error message as my normal user 
and thought it was a permission error, so I tried again with 
the elevated privileges. For what it's worth, my normal user 
has no problems editing that file through Vim or deleting it 
from the command prompt.

Since it worked for Daniel with the rdoc gem installed, I'm 
curious if it was the rdoc_html_templates. I'll see if I can 
duplicate the error and narrow it down a bit more. There 
doesn't seem to be a huge outcry on this, so I'm obviously 
an edge case.


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

Comment By: Eric Hodel (drbrain)
Date: 2009-05-05 14:54

Message:
What are your permissions for:

C:/ruby/lib/ruby/gems/1.8/doc/rubygems-1.3.3/ri/Gem/Commands/cdesc-Commands.yaml


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

Comment By: Daniel Berger (djberg96)
Date: 2009-05-04 17:20

Message:
BTW, I have rdoc 2.4.3 installed.

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

Comment By: Daniel Berger (djberg96)
Date: 2009-05-04 17:19

Message:
Odd. I was able to update on my Windows Vista box with no issues.

RubyGems Environment:
  - RUBYGEMS VERSION: 1.3.3
  - RUBY VERSION: 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
  - INSTALLATION DIRECTORY: C:/Ruby/lib/ruby/gems/1.8
  - RUBY EXECUTABLE: C:/Ruby/bin/ruby.exe
  - EXECUTABLE DIRECTORY: C:/Ruby/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86-mswin32-60
  - GEM PATHS:
     - C:/Ruby/lib/ruby/gems/1.8
     - C:/Users/djberge/.gem/ruby/1.8
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://gems.rubyforge.org/


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

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=25777&group_id=126
_______________________________________________
Rubygems-developers mailing list
http://rubyforge.org/projects/rubygems
Rubygems-developers@rubyforge.org
http://rubyforge.org/mailman/listinfo/rubygems-developers

Reply via email to