# Rubygems won't run on WinXP after system update

**URL:** <https://www.ruby-forum.com/t/rubygems-wont-run-on-winxp-after-system-update/142331>\
**Category:** Ruby\
**Created:** [July 6, 2008, 10:29pm UTC](https://www.ruby-forum.com/t/rubygems-wont-run-on-winxp-after-system-update/142331 "2008-07-06T22:29:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![arturaz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/73ab20/32.png) [@arturaz](https://www.ruby-forum.com/u/arturaz)\
**Post date:** [July 6, 2008, 10:29pm UTC](https://www.ruby-forum.com/t/rubygems-wont-run-on-winxp-after-system-update/142331/1 "2008-07-06T22:29:59Z")

</div>

hello.

Anyone tried to upgrade rubygems from windows xp?

I downloaded fresh ruby 1.8.6 installer, installed, did gem update  
–system and now whenever I try anything, i get this:

C:\Documents and Settings\ArtÅ«ras\>gem update --system  
Updating RubyGems  
ERROR: While executing gem … (Errno::ENOENT)  
No such file or directory - C:\Documents and Settings\ArtÅ«ras

Tried googling, nothing there…

Tried changing USERPROFILE env var to c:\ and c://, but still no luck 😑

Any ideas?

---

<div class="post-metadata">

**Author:** ![arturaz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/73ab20/32.png) [@arturaz](https://www.ruby-forum.com/u/arturaz)\
**Post date:** [July 7, 2008, 12:40am UTC](https://www.ruby-forum.com/t/rubygems-wont-run-on-winxp-after-system-update/142331/2 "2008-07-07T00:40:30Z")

</div>

On Jul 6, 10:26 pm, Artûras Ðlajus [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ```
> No such file or directory - C:\Documents and Settings\Artûras
> 
> ```
> 
> Tried googling, nothing there…
> 
> Tried changing USERPROFILE env var to c:\ and c://, but still no luck 😑
> 
> Any ideas?

Dunno your previous setup configuration, but your username contains an  
extended accented character which will make the life of any non-  
unicode application hard.

To workaround this I suggest you set HOME environment variable to  
something different than Documents and Settings, since will have the  
same problem.

Also, do not mess with USERPROFILE since ti serve other purpose beside  
being used by applications, USERPROFILE is the place Windows stored  
the ntuser part of registry, which I suggest you stay away from it 🙂

HTH,

---

<div class="post-metadata">

**Author:** ![arturaz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/73ab20/32.png) [@arturaz](https://www.ruby-forum.com/u/arturaz)\
**Post date:** [July 7, 2008, 8:05am UTC](https://www.ruby-forum.com/t/rubygems-wont-run-on-winxp-after-system-update/142331/3 "2008-07-07T08:05:29Z")

</div>

> C:\Documents and Settings\Artûras\>gem update --system

You could try to add the --debug flag for additional output.

---

<div class="post-metadata">

**Author:** ![arturaz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/73ab20/32.png) [@arturaz](https://www.ruby-forum.com/u/arturaz)\
**Post date:** [July 7, 2008, 12:25pm UTC](https://www.ruby-forum.com/t/rubygems-wont-run-on-winxp-after-system-update/142331/4 "2008-07-07T12:25:40Z")

</div>

ThoML wrote:

> You could try to add the --debug flag for additional output.

C:\Documents and Settings\ArtÅ«ras\>gem update --system --debug  
Exception `NameError' at c:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager .rb:134 - uninitialized constant Gem::Commands::UpdateCommand Updating RubyGems Exception`Errno::ENOENT’ at  
c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/spec\_fetche  
r.rb:41 - No such file or directory - C:\Documents and Settings\ArtÅ«ras  
ERROR: While executing gem … (Errno::ENOENT)  
No such file or directory - C:\Documents and Settings\ArtÅ«ras  
c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/spec\_fetcher.rb:41:in  
`stat' c:/ruby/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:41:in`initializ  
e’  
c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/spec\_fetcher.rb:32:in  
`new' c:/ruby/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:32:in`fetcher’  
c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/commands/update\_command.rb:139:i  
n `which_to_update' c:/ruby/lib/ruby/site_ruby/1.8/rubygems/commands/update_command.rb:132:i n`each’  
c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/commands/update\_command.rb:132:i  
n `which_to_update' c:/ruby/lib/ruby/site_ruby/1.8/rubygems/commands/update_command.rb:68:in`execute’  
c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/command.rb:136:in  
`invoke' c:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:105:in`proce  
ss\_args’  
c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/command\_manager.rb:75:in  
`run' c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:39:in`run’  
c:/ruby/bin/gem:24

---

<div class="post-metadata">

**Author:** ![arturaz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/73ab20/32.png) [@arturaz](https://www.ruby-forum.com/u/arturaz)\
**Post date:** [July 7, 2008, 12:36pm UTC](https://www.ruby-forum.com/t/rubygems-wont-run-on-winxp-after-system-update/142331/5 "2008-07-07T12:36:34Z")

</div>

Luis L. wrote:

> To workaround this I suggest you set HOME environment variable to  
> something different than Documents and Settings, since will have the  
> same problem.  
> Thanks, it seems to work 🙂
