# "gem update --system" ignores where I installed rubygems

**URL:** <https://www.ruby-forum.com/t/gem-update-system-ignores-where-i-installed-rubygems/106417>\
**Category:** Ruby\
**Created:** [June 10, 2007, 7:23am UTC](https://www.ruby-forum.com/t/gem-update-system-ignores-where-i-installed-rubygems/106417 "2007-06-10T07:23:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![levander](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ed655f/32.png) [@levander](https://www.ruby-forum.com/u/levander)\
**Post date:** [June 10, 2007, 7:23am UTC](https://www.ruby-forum.com/t/gem-update-system-ignores-where-i-installed-rubygems/106417/1 "2007-06-10T07:23:41Z")

</div>

On my Ubuntu Feisty box a few months ago, I installed rubygems 0.9.0 in  
/opt/rubygems by:

export GEM\_HOME=/opt/rubygems/lib/ruby/gems/1.8  
export RUBYLIB=/opt/rubygems/lib/ruby:/opt/rubygems/lib/site\_ruby/1.8  
sudo ruby setup.rb --prefix=/opt/rubygems

This worked fine for playing with installing a few gems and running some  
software that accessed them.

Coming back to play with them today, I ran:

sudo gem update --system

From the output of that command, none of the updated files went into  
/opt/rubygems. Most of them went into /usr/local/lib/site\_ruby, but it  
looks like other files went other places too. gem went right down into  
/usr/bin.

1.) I’m thinking I can just read the output of the update command I ran  
and delete the files manually that it put everywhere? Is there an  
easier, more sure, way?

2.) Also, I’ve looked on [docs.rubygems.org](http://docs.rubygems.org) and can’t find how to run  
this command so that the system update will go into /opt/rubygems?

---

<div class="post-metadata">

**Author:** ![levander](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ed655f/32.png) [@levander](https://www.ruby-forum.com/u/levander)\
**Post date:** [June 10, 2007, 11:10am UTC](https://www.ruby-forum.com/t/gem-update-system-ignores-where-i-installed-rubygems/106417/2 "2007-06-10T11:10:52Z")

</div>

On 2007-06-10, levander [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> 2.) Also, I’ve looked on [docs.rubygems.org](http://docs.rubygems.org) and can’t find how to run  
> this command so that the system update will go into /opt/rubygems?

Known problem, still unfixed AFAICT. See my report and workaround at  
URL:http://rubyforge.org/tracker/index.php?func=detail&aid=9346&group\_id.  
Be warned, that workaround didn’t quite work for upgrading to 0.9.4 ,  
I had to add a symlink usr → . in my GEM\_PREFIX before it finally put  
everything in the right place.

Jeremy H.

---

<div class="post-metadata">

**Author:** ![levander](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ed655f/32.png) [@levander](https://www.ruby-forum.com/u/levander)\
**Post date:** [June 12, 2007, 9:47am UTC](https://www.ruby-forum.com/t/gem-update-system-ignores-where-i-installed-rubygems/106417/3 "2007-06-12T09:47:55Z")

</div>

On Jun 9, 2007, at 22:23, levander wrote:

> […]
> 
> From the output of that command, none of the updated files went into  
> /opt/rubygems. Most of them went into /usr/local/lib/site\_ruby,  
> but it  
> looks like other files went other places too. gem went right down  
> into  
> /usr/bin.
> 
> […]

This really isn’t the best place to report bugs in RubyGems since the  
developers don’t often read this list. Filing a bug in the bug  
tracker is the best place to report a bug. Sending an email to the  
RubyGems developers list is the second best.

---

<div class="post-metadata">

**Author:** ![levander](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ed655f/32.png) [@levander](https://www.ruby-forum.com/u/levander)\
**Post date:** [June 12, 2007, 2:51pm UTC](https://www.ruby-forum.com/t/gem-update-system-ignores-where-i-installed-rubygems/106417/4 "2007-06-12T14:51:06Z")

</div>

On 2007-06-12, Eric H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> This really isn’t the best place to report bugs in RubyGems since  
> the developers don’t often read this list. Filing a bug in the bug  
> tracker is the best place to report a bug.

_cough_

[http://rubyforge.org/tracker/index.php?func=detail&aid=8470&group\_id=126&atid=575](http://rubyforge.org/tracker/index.php?func=detail&aid=8470&group_id=126&atid=575)

[http://rubyforge.org/tracker/index.php?func=detail&aid=9346&group\_id=126&atid=575](http://rubyforge.org/tracker/index.php?func=detail&aid=9346&group_id=126&atid=575)

Submitted in February and March respectively. Both still unassigned.  
☹

Regards,

Jeremy H.

---

<div class="post-metadata">

**Author:** ![levander](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ed655f/32.png) [@levander](https://www.ruby-forum.com/u/levander)\
**Post date:** [June 15, 2007, 10:01pm UTC](https://www.ruby-forum.com/t/gem-update-system-ignores-where-i-installed-rubygems/106417/5 "2007-06-15T22:01:05Z")

</div>

On Jun 12, 2007, at 05:50, Jeremy H. wrote:

> [http://rubyforge.org/tracker/index.php](http://rubyforge.org/tracker/index.php)?  
> func=detail&aid=9346&group\_id=126&atid=575
> 
> Submitted in February and March respectively. Both still unassigned.

Par for the course for an all-volunteer project.

Bugs get fixed fastest when the party most-interested in the fix  
writes the fix. (The primary developers can sometimes be bribed, but  
sometimes they have other things to do.)
