Error while updating RubyGems to 1.3.6
Greetings,
I was following the MongoDB tutorial to install the Mongo Ruby Driver Gem for Ruby. It said to first update to RubyGems 1.3.6 so I did. And this is what I got
`C:>gem update --system Updating RubyGems
Updating rubygems-update
Successfully installed rubygems-update-1.3.6
Updating RubyGems to 1.3.6
Installing RubyGems 1.3.6
RubyGems 1.3.6 installed
ERROR: While executing gem ... (Errno::EACCES)
Permission denied - ./Gem/cdesc-Gem.yaml
` So it appears that RubyGems 1.3.6 was installed but then I got a nasty error. Since I am a beginner to Ruby and installing gems I have no idea what went wrong and how to fix this issue.
Any ideas?
Thanks,
Adam
Comments are currently closed for this discussion. You can start a new one.
2 Posted by Adam on 05 May, 2010 01:52 AM
Sorry for messing up the last line of the command line results. I will post it again in a clear manner:
C:>gem update --system
Updating RubyGems
Updating rubygems-update
Successfully installed rubygems-update-1.3.6
Updating RubyGems to 1.3.6
Installing RubyGems 1.3.6
RubyGems 1.3.6 installed
ERROR: While executing gem ... (Errno::EACCES)
Permission denied - ./Gem/cdesc-Gem.yaml
Support Staff 3 Posted by Nick Quaranto on 05 May, 2010 03:31 AM
Seems like you're on Windows. Are you running as Administrator? I bet you installed Ruby/RubyGems as an Administrator and you don't have privileges to overwrite those files, etc.
4 Posted by Adam on 05 May, 2010 02:06 PM
Ahh yes. Forgot to mention that fact.
I am on Windows Vista x64. All I remember is installing ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32]. I suppose RubyGems was installed automatically with that version. I forget the details of that installation but, I assume UAC prompted me to go into temporary Admin mode as it does for most installations.
So do you know how I would go into Admin mode (while in the command prompt ) to update RubyGems ?
5 Posted by Adam on 05 May, 2010 02:28 PM
I figured out that I just have to right click cmd.exe and choose 'Run as Admin'. I did that and tried to update RubyGems and this is what happened:
C:>gem update --system
Updating RubyGems
Nothing to update
C:>
So am I good to go or not? Is there a way I can check the version of RubyGems and integrity of the install to make sure we are at 100% health?
Support Staff 6 Posted by Eric Hodel on 05 May, 2010 05:23 PM
Your installation failed while building the RDoc. You can force the update by running update_rubygems.
7 Posted by Adam on 05 May, 2010 07:49 PM
Hi drbrain. Ok so I did as you said and all seemed to flow well. Please verify if the update went A-ok. Here are my results just to be thorough:
C:>update_rubygems
RubyGems 1.3.6 installed
=== 1.3.6 / 2010-02-17
NOTE:
http://rubygems.org is now the default source for downloading gems.
You may have sources set via ~/.gemrc, so you should replace
http://gems.rubyforge.org with http://rubygems.org
http://gems.rubyforge.org will continue to work for the forseeable future.
New features:
gemcommandsgem pushandgem ownerfor interacting with modern/Gemcutter sourcesgem depnow supports --prerelease.gem fetchnow supports --prerelease.gem servernow supports --bind. Patch #27357 by Bruno Michel.gem rdocno longer overwrites built documentation. Use --overwrite force rebuilding. Patch #25982 by Akinori MUSHA.Bug fixes:
gemcommandsgem whichnow fails if no paths were found. Adapted patch #27681 by Caio Chassot.gem serverno longer has invalid markup. Bug #27045 by Eric Young.gem listand friends show both prerelease and regular gems when --prerelease --all is givenDeprecation Notices:
RubyGems installed the following executables:
C:>
Support Staff 8 Posted by Eric Hodel on 05 May, 2010 08:17 PM
Looks good.
Eric Hodel closed this discussion on 05 May, 2010 08:17 PM.