Error executing gem... (Errno::ENOENT)
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
2 Posted by rusty on 25 Jul, 2011 07:55 PM
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)
Support Staff 3 Posted by Luis Lavena on 25 Jul, 2011 07:59 PM
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.