# Local gems not loaded in ruby \> 1.9 without custom\_require

**URL:** <https://www.ruby-forum.com/t/local-gems-not-loaded-in-ruby-1-9-without-custom-require/185482>\
**Category:** Ruby\
**Created:** [March 21, 2010, 7:39am UTC](https://www.ruby-forum.com/t/local-gems-not-loaded-in-ruby-1-9-without-custom-require/185482 "2010-03-21T07:39:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bterkuile](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e68b1a/32.png) [@bterkuile](https://www.ruby-forum.com/u/bterkuile)\
**Post date:** [March 21, 2010, 7:39am UTC](https://www.ruby-forum.com/t/local-gems-not-loaded-in-ruby-1-9-without-custom-require/185482/1 "2010-03-21T07:39:35Z")

</div>

I have a Kubuntu 9.10 64bit installation. I run ruby 1.8.7 and 1.9.1  
next to eachother.  
gem1.9.1 env returns:  
…

- GEM PATHS:
  - /usr/lib/ruby1.9.1/gems/1.9.1
  - /home/username/.gem/ruby/1.9.1  
…  
but gems installed locally are not found by using require.  
So:  
require ‘rubygems’  
require ‘mygem’  
will fail  
but…  
require ‘rubygems/custom\_require’  
require ‘mygem’  
is ok.  
Is this an installation issue or due to the fact that gems are supposed  
to load using a ruby installation even without requiring rubygems.

It is not a major issue, but nice if things work out of the box 🙂
