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

**URL:** <https://rubytalk.org/t/problems-with-require-some-installed-gem/51171>\
**Category:** ruby-talk\
**Created:** [15 January 2009 14:19 UTC](https://rubytalk.org/t/problems-with-require-some-installed-gem/51171 "2009-01-15T14:19:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dennis\_Schmidt](https://avatars.discourse-cdn.com/v4/letter/d/9e8a1a/32.png) [@Dennis\_Schmidt](https://rubytalk.org/u/Dennis_Schmidt)\
**Post date:** [15 January 2009 14:19 UTC](https://rubytalk.org/t/problems-with-require-some-installed-gem/51171/1 "2009-01-15T14:19:04Z")

</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  
&nbsp;&nbsp;from (irb):1:in `require'  
&nbsp;&nbsp;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 Schmidt

---

<div class="post-metadata">

**Author:** ![Jan-Erik\_R](https://avatars.discourse-cdn.com/v4/letter/j/45deac/32.png) [@Jan-Erik\_R](https://rubytalk.org/u/Jan-Erik_R)\
**Post date:** [15 January 2009 14:21 UTC](https://rubytalk.org/t/problems-with-require-some-installed-gem/51171/2 "2009-01-15T14:21:59Z")

</div>

Dennis Schmidt schrieb:

> 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  
> &nbsp;&nbsp;from (irb):1:in `require'  
> &nbsp;&nbsp;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 Schmidt

you need to: require 'rubygems'

---

<div class="post-metadata">

**Author:** ![Dennis\_Schmidt](https://avatars.discourse-cdn.com/v4/letter/d/9e8a1a/32.png) [@Dennis\_Schmidt](https://rubytalk.org/u/Dennis_Schmidt)\
**Post date:** [15 January 2009 14:39 UTC](https://rubytalk.org/t/problems-with-require-some-installed-gem/51171/3 "2009-01-15T14:39:02Z")

</div>

thanks a lot, that works 🙂

> **···**
>
> On 15 Jan., 15:21, badboy \<bad...@heartofgold.co.cc\> wrote:
> 
> > Dennis Schmidt schrieb:
> > 
> > \> 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 Schmidt
> > 
> > you need to: require 'rubygems'
