# Gem update problem - (gem update --system)

**URL:** <https://www.ruby-forum.com/t/gem-update-problem-gem-update-system/151803>\
**Category:** Rails\
**Created:** [October 26, 2008, 12:25am UTC](https://www.ruby-forum.com/t/gem-update-problem-gem-update-system/151803 "2008-10-26T00:25:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sal\_eSM](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/3bc359/32.png) [@Sal\_eSM](https://www.ruby-forum.com/u/Sal_eSM)\
**Post date:** [October 26, 2008, 12:25am UTC](https://www.ruby-forum.com/t/gem-update-problem-gem-update-system/151803/1 "2008-10-26T00:25:21Z")

</div>

Hello,

Running Windows XP SP2

From the ruby directory:

d:\Ruby\bin\>gem update --system  
Updating RubyGems  
ERROR: While executing gem … (NoMethodError)  
undefined method `uid’ for nil:NilClass

From the InstantRails directory:

D:\rails\rails\_apps\>gem update --system  
Updating RubyGems  
ERROR: While executing gem … (NoMethodError)  
undefined method `uid’ for nil:NilClass

Any suggestions?

Thanks, Lawrence

---

<div class="post-metadata">

**Author:** ![Sal\_eSM](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/3bc359/32.png) [@Sal\_eSM](https://www.ruby-forum.com/u/Sal_eSM)\
**Post date:** [October 28, 2008, 10:16am UTC](https://www.ruby-forum.com/t/gem-update-problem-gem-update-system/151803/2 "2008-10-28T10:16:05Z")

</div>

You have to do the following things

1 Uninstall the Ruby first.  
2. Install the ruby again. Let the computer to choice the folder itself.  
Normally the computer will choice “C:” to setup Ruby.  
3. Then go to C: drive and type “gem update --system” in the command  
prompt. It looks like “C:\gem update --System” and press enter.  
4. Thats it. It will update automatically.

Thanks

Khaled
