# Gem list --remote does not work on windows running ruby 1.9.2p0

**URL:** <https://www.ruby-forum.com/t/gem-list-remote-does-not-work-on-windows-running-ruby-1-9-2p0/193791>\
**Category:** Ruby\
**Created:** [August 24, 2010, 12:33pm UTC](https://www.ruby-forum.com/t/gem-list-remote-does-not-work-on-windows-running-ruby-1-9-2p0/193791 "2010-08-24T12:33:55Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![botp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/258eb7/32.png) [@botp](https://www.ruby-forum.com/u/botp)\
**Post date:** [August 24, 2010, 12:33pm UTC](https://www.ruby-forum.com/t/gem-list-remote-does-not-work-on-windows-running-ruby-1-9-2p0/193791/1 "2010-08-24T12:33:55Z")

</div>

Title says all.  
This q is mainly for LuisL, but maybe someone has encountered it  
already…  
I plan to modify gem.bat, but maybe there is a better way, so the q…

many thanks to Luis for a great ruby package for windows.

best regards -botp

sample run…

C:\downloads\>gem list --remote

\*\*\* REMOTE GEMS \*\*\*

ERROR: While executing gem … (Errno::ENOENT)  
No such file or directory - C:/Documents and Settings/PeñaIJM

C:\downloads\>  
C:\downloads\>ruby -v  
ruby 1.9.2p0 (2010-08-18) [i386-mingw32]

C:\downloads\>gem list

\*\*\* LOCAL GEMS \*\*\*

minitest (1.6.0)  
rake (0.8.7)  
rdoc (2.5.8)

C:\downloads\>gem list --remote

\*\*\* REMOTE GEMS \*\*\*

ERROR: While executing gem … (Errno::ENOENT)  
No such file or directory - C:/Documents and Settings/PeñaIJM

---

<div class="post-metadata">

**Author:** ![botp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/258eb7/32.png) [@botp](https://www.ruby-forum.com/u/botp)\
**Post date:** [August 24, 2010, 1:40pm UTC](https://www.ruby-forum.com/t/gem-list-remote-does-not-work-on-windows-running-ruby-1-9-2p0/193791/2 "2010-08-24T13:40:39Z")

</div>

On Aug 24, 7:33 am, botp [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> C:\downloads\>gem list --remote  
> C:\downloads\>gem list
> 
> ERROR: While executing gem … (Errno::ENOENT)  
> No such file or directory - C:/Documents and Settings/PeñaIJM

When reporting issues related to RubyGems, please provide the  
following:

1. Complete output of “gem env”

2. Complete output of the command that triggers the error including “–  
debug -V” options.

Preferable, provide a gist or pastie with it.

I can’t reproduce, it works for me:

> <https://gist.github.com/luislavena/547401>

And then more than 3 thousands rows…

---

<div class="post-metadata">

**Author:** ![botp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/258eb7/32.png) [@botp](https://www.ruby-forum.com/u/botp)\
**Post date:** [August 24, 2010, 1:45pm UTC](https://www.ruby-forum.com/t/gem-list-remote-does-not-work-on-windows-running-ruby-1-9-2p0/193791/3 "2010-08-24T13:45:56Z")

</div>

On Aug 24, 7:33 am, botp [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ruby 1.9.2p0 (2010-08-18) [i386-mingw32]

It is worth mentioning that your username contains accented  
characters.

RubyGems itself don’t have an specific test for that, since it assumes  
Ruby handles it.

Ruby 1.9.2 has improved unicode support for file management, but it  
might be an oversight in this case.

Please provide the information I’ve requested on my previous post.

Also, the gems you listed are bundled with Ruby, so doing gem list  
will not trigger anything as these gems are inside Ruby.

---

<div class="post-metadata">

**Author:** ![botp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/258eb7/32.png) [@botp](https://www.ruby-forum.com/u/botp)\
**Post date:** [August 25, 2010, 5:42am UTC](https://www.ruby-forum.com/t/gem-list-remote-does-not-work-on-windows-running-ruby-1-9-2p0/193791/4 "2010-08-25T05:42:40Z")

</div>

On Tue, Aug 24, 2010 at 7:45 PM, Luis L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> It is worth mentioning that your username contains accented characters.  
> RubyGems itself don’t have an specific test for that, since it assumes  
> Ruby handles it.  
> Ruby 1.9.2 has improved unicode support for file management, but it  
> might be an oversight in this case.

ah, yes.

if that is the case, i may need to adjust but i’d like to know the  
best way. changing my userid is close to remote since i do not dictate  
my login id here… we login w our real name ie…

thank you and best regards -botp

---

<div class="post-metadata">

**Author:** ![botp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/258eb7/32.png) [@botp](https://www.ruby-forum.com/u/botp)\
**Post date:** [August 25, 2010, 6:30am UTC](https://www.ruby-forum.com/t/gem-list-remote-does-not-work-on-windows-running-ruby-1-9-2p0/193791/5 "2010-08-25T06:30:39Z")

</div>

On Aug 25, 12:41 am, botp [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> best way. changing my userid is close to remote since i do not dictate  
> my login id here… we login w our real name ie…
> 
> thank you and best regards -botp

Did you installed ruby with admin rights? Because gem env shows the  
right information.

Try setting HOME using setx command to a folder without spaces.

---

<div class="post-metadata">

**Author:** ![botp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/258eb7/32.png) [@botp](https://www.ruby-forum.com/u/botp)\
**Post date:** [August 25, 2010, 5:42am UTC](https://www.ruby-forum.com/t/gem-list-remote-does-not-work-on-windows-running-ruby-1-9-2p0/193791/6 "2010-08-25T05:42:05Z")

</div>

On Tue, Aug 24, 2010 at 7:40 PM, Luis L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> 1. Complete output of “gem env”
> 2. Complete output of the command that triggers the error including “-- debug -V” options.

Hi Luis,

here goes…

C:\Documents and Settings\PeñaIJM\>gem env  
RubyGems Environment:

- RUBYGEMS VERSION: 1.3.7
- RUBY VERSION: 1.9.2 (2010-08-18 patchlevel 0) [i386-mingw32]
- INSTALLATION DIRECTORY: C:/Ruby192/lib/ruby/gems/1.9.1
- RUBY EXECUTABLE: C:/Ruby192/bin/ruby.exe
- EXECUTABLE DIRECTORY: C:/Ruby192/bin
- RUBYGEMS PLATFORMS:
  - ruby
  - x86-mingw32

- GEM PATHS:
  - C:/Ruby192/lib/ruby/gems/1.9.1

- GEM CONFIGURATION:
  - :update\_sources =\> true
  - :verbose =\> true
  - :benchmark =\> false
  - :backtrace =\> false
  - :bulk\_threshold =\> 1000

- REMOTE SOURCES:
  - [http://rubygems.org/](http://rubygems.org/)

C:\Documents and Settings\PeñaIJM\>gem list --remote --debug -V  
Exception `NameError’ at  
C:/Ruby192/lib/ruby/1.9.1/rubygems/command\_manager.rb:164

- uninitialized constant Gem::Commands::ListCommand

\*\*\* REMOTE GEMS \*\*\*

Exception `Errno::ENOENT’ at  
C:/Ruby192/lib/ruby/1.9.1/rubygems/spec\_fetcher.rb:47

- No such file or directory - C:/Documents and Settings/PeñaIJM  
ERROR: While executing gem … (Errno::ENOENT)  
No such file or directory - C:/Documents and Settings/PeñaIJM  
C:/Ruby192/lib/ruby/1.9.1/rubygems/spec\_fetcher.rb:47:in `stat' C:/Ruby192/lib/ruby/1.9.1/rubygems/spec_fetcher.rb:47:in `initialize’  
C:/Ruby192/lib/ruby/1.9.1/rubygems/spec\_fetcher.rb:38:in `new' C:/Ruby192/lib/ruby/1.9.1/rubygems/spec_fetcher.rb:38:in `fetcher’  
C:/Ruby192/lib/ruby/1.9.1/rubygems/commands/query\_command.rb:112:in  
`execute' C:/Ruby192/lib/ruby/1.9.1/rubygems/commands/list_command.rb:31:in `execute’  
C:/Ruby192/lib/ruby/1.9.1/rubygems/command.rb:270:in `invoke' C:/Ruby192/lib/ruby/1.9.1/rubygems/command_manager.rb:134:in `process\_args’  
C:/Ruby192/lib/ruby/1.9.1/rubygems/command\_manager.rb:104:in  
`run' C:/Ruby192/lib/ruby/1.9.1/rubygems/gem_runner.rb:58:in `run’  
C:/Ruby192/bin/gem:21:in `’

C:\Documents and Settings\PeñaIJM\>

note, this is fresh/pristine install of ruby. no previous ruby ie…

best regards -botp

---

<div class="post-metadata">

**Author:** ![botp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/258eb7/32.png) [@botp](https://www.ruby-forum.com/u/botp)\
**Post date:** [August 25, 2010, 5:35pm UTC](https://www.ruby-forum.com/t/gem-list-remote-does-not-work-on-windows-running-ruby-1-9-2p0/193791/7 "2010-08-25T17:35:41Z")

</div>

On Aug 25, 2:38 am, botp [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> 

HOMEDRIVE and HOMEPATH is part of the system, you shouldn’t be  
removing those 😛

What was HOME set to?

On Windows XP I used to map my user directory to another drive and  
configured USERPROFILE (in User administration) to that drive.

Vista and now 7 uses user folders without spaces, thank god.

> btw, Luis, can i install ruby as an ordinary user (no admin ie) and  
> just place ruby under my win home folder… akin to what rvm does on  
> linux…

That is how I have installed Ruby (actually using the 7-zip packages  
of RubyInstaller).

However, please avoid having path with spaces as your home directory.

C:\Users\Luis\Projects\oss\oci\rubyinstaller\>where ruby  
C:\Users\Luis\Tools\Ruby\ruby-1.8.7-p302-i386-mingw32\bin\ruby.exe

---

<div class="post-metadata">

**Author:** ![botp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/258eb7/32.png) [@botp](https://www.ruby-forum.com/u/botp)\
**Post date:** [August 26, 2010, 4:02am UTC](https://www.ruby-forum.com/t/gem-list-remote-does-not-work-on-windows-running-ruby-1-9-2p0/193791/8 "2010-08-26T04:02:43Z")

</div>

On Wed, Aug 25, 2010 at 11:35 PM, Luis L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> HOMEDRIVE and HOMEPATH is part of the system, you shouldn’t be  
> removing those 😛

well if the going gets tough, the brain fa\*rts 🙂

> What was HOME set to?

none. i have no home var

> On Windows XP I used to map my user directory to another drive and  
> configured USERPROFILE (in User administration) to that drive.

i would prefer lesser config that requires admin. i’m just lucky here  
since i’m close to the admins… but they’re always busy so…

> Vista and now 7 uses user folders without spaces, thank god.

wow didn’t know that. i am still stuck at xp after a bad vista  
experience.

> > btw, Luis, can i install ruby as an ordinary user (no admin ie) and  
> > just place ruby under my win home folder… akin to what rvm does on  
> > linux…
> 
> That is how I have installed Ruby (actually using the 7-zip packages  
> of RubyInstaller).

ah, the zip packs. thanks, Luis.

> However, please avoid having path with spaces as your home directory.
> 
> C:\Users\Luis\Projects\oss\oci\rubyinstaller\>where ruby  
> C:\Users\Luis\Tools\Ruby\ruby-1.8.7-p302-i386-mingw32\bin\ruby.exe

yes, wish i could touch the root folder anytime. maybe time to go to win  
7 🙂

> –  
> Luis L.

thank you and best regards -botp

---

<div class="post-metadata">

**Author:** ![botp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/258eb7/32.png) [@botp](https://www.ruby-forum.com/u/botp)\
**Post date:** [August 25, 2010, 7:39am UTC](https://www.ruby-forum.com/t/gem-list-remote-does-not-work-on-windows-running-ruby-1-9-2p0/193791/9 "2010-08-25T07:39:07Z")

</div>

On Wed, Aug 25, 2010 at 12:30 PM, Luis L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Did you installed ruby with admin rights? Because gem env shows the right information.  
> Try setting HOME using setx command to a folder without spaces.

this is weird.  
out of desperation, i removed all home vars (eg homepath…) _and_ it  
works. i was even able to update

… just wondering now how it would affect other win apps that depends  
on homepath, etc…

btw, Luis, can i install ruby as an ordinary user (no admin ie) and  
just place ruby under my win home folder… akin to what rvm does on  
linux…

thanks and kind regards -botp
