# Problems with "require 'some-installed-gem'"

**URL:** <https://www.ruby-forum.com/t/problems-with-require-some-installed-gem/157812>\
**Category:** Ruby\
**Created:** [January 15, 2009, 3:20pm UTC](https://www.ruby-forum.com/t/problems-with-require-some-installed-gem/157812 "2009-01-15T15:20:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sutch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/13edae/32.png) [@sutch](https://www.ruby-forum.com/u/sutch)\
**Post date:** [January 15, 2009, 3:20pm UTC](https://www.ruby-forum.com/t/problems-with-require-some-installed-gem/157812/1 "2009-01-15T15:20:46Z")

</div>

Hi everybody,

I’ve got a strange problem and hope this is the right place for it.  
I’ve recently installed a new gem for ruby, called ‘rsruby’ (but it  
shouldn’t matter I think which one it is).

The problem is the following:

irb(main):001:0\> require ‘rsruby’  
LoadError: no such file to load – rsruby  
from (irb):1:in `require’  
from (irb):1

I just can’t include it. BUT when I move directly into the gem’s  
folder, it works just fine. In other words, when I open the ruby shell  
from within /usr/lib/ruby/gems/1.8/gems/rsruby-0.5.1/lib the output is

irb(main):001:0\> require ‘rsruby’  
=\> true

as it should and I can use the gem without any problems.  
Any ideas where this could come from? I hope this is really a ruby  
issue and not a server (debian) issue.

Thanks in advance,

Dennis S.

---

<div class="post-metadata">

**Author:** ![sutch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/13edae/32.png) [@sutch](https://www.ruby-forum.com/u/sutch)\
**Post date:** [January 15, 2009, 3:24pm UTC](https://www.ruby-forum.com/t/problems-with-require-some-installed-gem/157812/2 "2009-01-15T15:24:55Z")

</div>

Dennis S. schrieb:

> from (irb):1:in `require’  
> Any ideas where this could come from? I hope this is really a ruby  
> issue and not a server (debian) issue.
> 
> Thanks in advance,
> 
> Dennis S.

you need to: require ‘rubygems’

---

<div class="post-metadata">

**Author:** ![sutch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/13edae/32.png) [@sutch](https://www.ruby-forum.com/u/sutch)\
**Post date:** [January 15, 2009, 3:41pm UTC](https://www.ruby-forum.com/t/problems-with-require-some-installed-gem/157812/3 "2009-01-15T15:41:03Z")

</div>

On 15 Jan., 15:21, badboy [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > irb(main):001:0\> require ‘rsruby’
> 
> > as it should and I can use the gem without any problems.  
> > Any ideas where this could come from? I hope this is really a ruby  
> > issue and not a server (debian) issue.
> 
> > Thanks in advance,
> 
> > Dennis S.
> 
> you need to: require ‘rubygems’

thanks a lot, that works 🙂
