Error executing gem... (Errno::ENOENT)

rusty's Avatar

rusty

25 Jul, 2011 07:51 PM

Attempting to update gems results in an error refering to a non-existence drive.
I running Win7. The following is the debug messages:

C:\Ruby>gem update --system --debug -V
Exception NameError' at C:/Ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:177 - uninitialized constant Gem::Commands::UpdateCommand ExceptionLoadError' at C:/Ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36 - no such file to load -- psych
Exception LoadError' at C:/Ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:62 - no such file to load -- psych ExceptionErrno::ENOENT' at C:/Ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:54 - No such file or directory - Z:/
ERROR: While executing gem ... (Errno::ENOENT)

No such file or directory - Z:/
    C:/Ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:54:in `stat'
    C:/Ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:54:in `initialize'
    C:/Ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:43:in `new'
    C:/Ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:43:in `fetcher'
    C:/Ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/commands/update_command.rb:209:in `which_to_update'
    C:/Ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/commands/update_command.rb:203:in `each'
    C:/Ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/commands/update_command.rb:203:in `which_to_update'
    C:/Ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/commands/update_command.rb:158:in `update_rubygems'
    C:/Ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/commands/update_command.rb:61:in `execute'
    C:/Ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/command.rb:278:in `invoke'
    C:/Ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:147:in `process_args'
    C:/Ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:117:in `run'
    C:/Ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:65:in `run'
    C:/Ruby/Ruby187/bin/gem:21
  1. 2 Posted by rusty on 25 Jul, 2011 07:55 PM

    rusty's Avatar

    Trying again to avoid formatting:

    C:\Ruby>gem update --system --debug -V
    Exception 'NameError' at C:/Ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:177 - uninitialized constant Gem::Commands::UpdateCommand
    Exception 'LoadError' at C:/Ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36 - no such file to load -- psych
    Exception 'LoadError' at C:/Ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:62 - no such file to load -- psych
    Exception 'Errno::ENOENT' at C:/Ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:54 - No such file or directory - Z:/
    ERROR: While executing gem ... (Errno::ENOENT)

    No such file or directory - Z:/
        C:/Ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:54:in 'stat'
        C:/Ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:54:in 'initialize'
        C:/Ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:43:in 'new'
        C:/Ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:43:in 'fetcher'
        C:/Ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/commands/update_command.rb:209:in 'which_to_update'
        C:/Ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/commands/update_command.rb:203:in 'each'
        C:/Ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/commands/update_command.rb:203:in 'which_to_update'
        C:/Ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/commands/update_command.rb:158:in 'update_rubygems'
        C:/Ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/commands/update_command.rb:61:in 'execute'
        C:/Ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/command.rb:278:in 'invoke'
        C:/Ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:147:in 'process_args'
        C:/Ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:117:in 'run'
        C:/Ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:65:in 'run'
        C:/Ruby/Ruby187/bin/gem:21
    
  2. Support Staff 3 Posted by Luis Lavena on 25 Jul, 2011 07:59 PM

    Luis Lavena's Avatar

    Hello,

    Please see if the following article doesn't help you:

    http://help.rubygems.org/discussions/problems/545-cannot-install-ru...

    And also this:

    http://groups.google.com/group/rubyinstaller/browse_thread/thread/1...

    This error is quite common when environment variables are incorrect and a network drive is improperly setup.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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

29 Aug, 2014 06:23 PM
28 Aug, 2014 07:18 PM
27 Aug, 2014 12:03 PM
26 Aug, 2014 07:09 PM
26 Aug, 2014 07:07 PM