# Library path not working?

**URL:** <https://www.ruby-forum.com/t/library-path-not-working/190515>\
**Category:** Ruby\
**Created:** [June 22, 2010, 12:12am UTC](https://www.ruby-forum.com/t/library-path-not-working/190515 "2010-06-22T00:12:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![worzeel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/f4b2a3/32.png) [@worzeel](https://www.ruby-forum.com/u/worzeel)\
**Post date:** [June 22, 2010, 12:12am UTC](https://www.ruby-forum.com/t/library-path-not-working/190515/1 "2010-06-22T00:12:01Z")

</div>

Hi,

I am new to using ruby, so I am probably doing something wrong, but I  
cant figure out what it is…

I am having an issue with just trying to locate libraries for Ruby to  
include installed gems…

Some examples:  
[http://www.pastie.org/1013176](http://www.pastie.org/1013176)

Notice that I have to include the full path to where cucumber is!!!.. I  
will also need to specify this for _all_ gems I want to use in my  
project.

Also, similar thing happens when I use irb:

[http://www.pastie.org/1014326](http://www.pastie.org/1014326)

Notice that I also need to explictly specify location of where cucumber  
gem is… this does not seem right… is there some global place I  
should be looking on where ruby can find its libraries?

I am using Ubuntu Lucid

Thanks  
Antonio Broughton

---

<div class="post-metadata">

**Author:** ![worzeel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/f4b2a3/32.png) [@worzeel](https://www.ruby-forum.com/u/worzeel)\
**Post date:** [June 22, 2010, 1:03am UTC](https://www.ruby-forum.com/t/library-path-not-working/190515/2 "2010-06-22T01:03:23Z")

</div>

Found out what it was… I juse needed to include:

require ‘rubygems’

before I include any gems…
