From: Luis Lavena Date: 2010-03-03T21:38:46+09:00 Subject: Re: Gem Path remove On Mar 3, 12:27 pm, Andrei Caragea wrote: > Hello Everyone, > > I'm having trouble installing gems because of a gem path. > > C:\>gem install watir > ERROR:  While executing gem ... (Errno::EACCES) >     Permission denied - Z:/.gem > > C:\>gem env > RubyGems Environment: >   - RUBYGEMS VERSION: 1.3.1 >   - 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 >      - Z:/.gem/ruby/1.8 >   - GEM CONFIGURATION: >      - :update_sources => true >      - :verbose => true >      - :benchmark => false >      - :backtrace => false >      - :bulk_threshold => 1000 >   - REMOTE SOURCES: >      -http://gems.rubyforge.org/ > > In my GEM PATHS theres Z:/.gem/ruby/1.8 > > Can anyone tell me how to remove that path? because that is a network > drive to which I will never have write access. Looks like your home or profile directory is Z:, check with this: ruby -v -e "puts File.expand_path('~')" You can force a location for gem installation using GEM_PATH and GEM_HOME environment variables. RubyGems seems using Z: because it may not have write permissions to C:/Ruby Did you or our Administrator install it? If so, would recommend talk to him and install Ruby "as user" instead. A newer version of an Installer for Windows has been made available a few weeks ago. I highly recommend the switch to it: http://rubyforge.org/forum/forum.php?forum_id=36423 -- Luis Lavena