Error while updating RubyGems to 1.3.6

Adam 's Avatar

Adam

05 May, 2010 01:46 AM

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

  1. 1 Posted by Adam on 05 May, 2010 01:52 AM

    Adam's Avatar

    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

  2. Support Staff 2 Posted by Nick Quaranto on 05 May, 2010 03:31 AM

    Nick Quaranto's Avatar

    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.

  3. 3 Posted by Adam on 05 May, 2010 02:06 PM

    Adam's Avatar

    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 ?

  4. 4 Posted by Adam on 05 May, 2010 02:28 PM

    Adam's Avatar

    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?

  5. Support Staff 5 Posted by Eric Hodel on 05 May, 2010 05:23 PM

    Eric Hodel's Avatar

    Your installation failed while building the RDoc. You can force the update by running update_rubygems.

  6. 6 Posted by Adam on 05 May, 2010 07:49 PM

    Adam's Avatar

    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:

    • gem commands
      • Added gem push and gem owner for interacting with modern/Gemcutter sources
      • gem dep now supports --prerelease.
      • gem fetch now supports --prerelease.
      • gem server now supports --bind. Patch #27357 by Bruno Michel.
      • gem rdoc no longer overwrites built documentation. Use --overwrite force rebuilding. Patch #25982 by Akinori MUSHA.
    • Captial letters are now allowed in prerelease versions.

    Bug fixes:

    • Development deps are no longer added to rubygems-update gem so older versions can update sucessfully.
    • Installer bugs:
      • Prerelease gems can now depend on non-prerelease gems.
      • Development dependencies are ignored unless explicitly needed. Bug #27608 by Roger Pack.
    • gem commands
      • gem which now fails if no paths were found. Adapted patch #27681 by Caio Chassot.
      • gem server no longer has invalid markup. Bug #27045 by Eric Young.
      • gem list and friends show both prerelease and regular gems when --prerelease --all is given
    • Gem::Format no longer crashes on empty files. Bug #27292 by Ian Ragsdale.
    • Gem::GemPathSearcher handles nil require_paths. Patch #27334 by Roger Pack.
    • Gem::RemoteFetcher no longer copies the file if it is where we want it. Patch #27409 by Jakub ┼á┼Ñastn├╜.

    Deprecation Notices:

    • lib/rubygems/timer.rb has been removed.
    • Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010.
    • Bulk index update is no longer supported.
    • Gem::manage_gems was removed in 1.3.3.
    • Time::today was removed in 1.3.3.

    RubyGems installed the following executables:

        c:/Ruby19/bin/gem
    

    C:>

  7. Support Staff 7 Posted by Eric Hodel on 05 May, 2010 08:17 PM

    Eric Hodel's Avatar

    Looks good.

  8. Eric Hodel closed this discussion on 05 May, 2010 08:17 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

Recent Discussions

23 Oct, 2014 05:37 PM
21 Oct, 2014 10:47 AM
18 Oct, 2014 08:39 PM
16 Oct, 2014 12:41 PM
06 Oct, 2014 02:30 PM