# Irb -r gemname produces error

**URL:** <https://www.ruby-forum.com/t/irb-r-gemname-produces-error/168566>\
**Category:** Ruby\
**Created:** [May 22, 2009, 1:31pm UTC](https://www.ruby-forum.com/t/irb-r-gemname-produces-error/168566 "2009-05-22T13:31:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gaudimila](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/87869e/32.png) [@gaudimila](https://www.ruby-forum.com/u/gaudimila)\
**Post date:** [May 22, 2009, 1:31pm UTC](https://www.ruby-forum.com/t/irb-r-gemname-produces-error/168566/1 "2009-05-22T13:31:28Z")

</div>

Noobie question: every time I run for example:

irb -r hpricot

I get the error:

…‘require’: no such file to load – hpricot (LoadError)…

and it happens regardless of which gem I wish to require. I do a gem  
list and it shows the gems I need are all installed. What am I  
overlooking?

Thanks!

---

<div class="post-metadata">

**Author:** ![gaudimila](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/87869e/32.png) [@gaudimila](https://www.ruby-forum.com/u/gaudimila)\
**Post date:** [May 22, 2009, 5:00pm UTC](https://www.ruby-forum.com/t/irb-r-gemname-produces-error/168566/2 "2009-05-22T17:00:24Z")

</div>

Gaudi Mi wrote:

> Noobie question: every time I run for example:
> 
> irb -r hpricot
> 
> I get the error:
> 
> …‘require’: no such file to load – hpricot (LoadError)…
> 
> and it happens regardless of which gem I wish to require. I do a gem  
> list and it shows the gems I need are all installed. What am I  
> overlooking?
> 
> Thanks!

Assuming that you’re running Ruby 1.8.x, what you’re missing is a  
-rubygems option.
