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

B

botp

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=F1aIJM

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=F1aIJM
 
L

Luis Lavena

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

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:

http://gist.github.com/547401

And then more than 3 thousands rows...
 
L

Luis Lavena

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]

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.
 
B

botp

1) Complete output of "gem env"
2) Complete output of the command that triggers the error including "-- d=
ebug -V" options.

Hi Luis,

here goes..

C:\Documents and Settings\Pe=F1aIJM>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 =3D> true
- :verbose =3D> true
- :benchmark =3D> false
- :backtrace =3D> false
- :bulk_threshold =3D> 1000
- REMOTE SOURCES:
- http://rubygems.org/

C:\Documents and Settings\Pe=F1aIJM>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=F1aIJM
ERROR: While executing gem ... (Errno::ENOENT)
No such file or directory - C:/Documents and Settings/Pe=F1aIJM
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 `initializ=
e'
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 `<main>'

C:\Documents and Settings\Pe=F1aIJM>

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

best regards -botp
 
B

botp

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
 
L

Luis Lavena

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

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.
 
B

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.

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
 
L

Luis Lavena

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...

HOMEDRIVE and HOMEPATH is part of the system, you shouldn't be
removing those :p

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
 
B

botp

HOMEDRIVE and HOMEPATH is part of the system, you shouldn't be
removing those :p

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.
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 =
:)

thank you and best regards -botp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,143
Latest member
DewittMill
Top