# Add rubygems bin to PATH Bug #145267

**URL:** <https://www.ruby-forum.com/t/add-rubygems-bin-to-path-bug-145267/180200>\
**Category:** Ruby\
**Created:** [December 14, 2009, 5:15pm UTC](https://www.ruby-forum.com/t/add-rubygems-bin-to-path-bug-145267/180200 "2009-12-14T17:15:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thufir](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ee7513/32.png) [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Post date:** [December 14, 2009, 5:15pm UTC](https://www.ruby-forum.com/t/add-rubygems-bin-to-path-bug-145267/180200/1 "2009-12-14T17:15:27Z")

</div>

What’s the best work around to this problem?

“The rubygems package places the binaries for installed gems into /var/  
lib/gems/1.8/bin, but this directory is not in the default PATH after  
the package is installed. It would be nice to add this when installing  
the package.”

[https://bugs.launchpad.net/ubuntu/+source/libgems-ruby/+bug/145267https://bugs.launchpad.net/ubuntu/+source/libgems-ruby/+bug/145267](https://bugs.launchpad.net/ubuntu/+source/libgems-ruby/+bug/145267https://bugs.launchpad.net/ubuntu/+source/libgems-ruby/+bug/145267)

various suggestions include:

~/.config/autostart  
~/.kde/Autorun  
/etc/profile  
/etc/profile.d

My gems install to the local user directory, so I have that added to  
my path.

-Thufir
