# "ubygems" load error

**URL:** <https://www.ruby-forum.com/t/ubygems-load-error/183863>\
**Category:** Ruby\
**Created:** [February 22, 2010, 1:06am UTC](https://www.ruby-forum.com/t/ubygems-load-error/183863 "2010-02-22T01:06:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![brianwisti](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/fbc32d/32.png) [@brianwisti](https://www.ruby-forum.com/u/brianwisti)\
**Post date:** [February 22, 2010, 1:06am UTC](https://www.ruby-forum.com/t/ubygems-load-error/183863/1 "2010-02-22T01:06:47Z")

</div>

Hi,I was installing a gem and got this error:

/usr/bin/ruby1.8: no such file to load – ubygems (LoadError)

thanks  
Brian

---

<div class="post-metadata">

**Author:** ![brianwisti](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/fbc32d/32.png) [@brianwisti](https://www.ruby-forum.com/u/brianwisti)\
**Post date:** [February 22, 2010, 3:22am UTC](https://www.ruby-forum.com/t/ubygems-load-error/183863/2 "2010-02-22T03:22:00Z")

</div>

On Sun, Feb 21, 2010 at 6:06 PM, Brian W. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi,I was installing a gem and got this error:
> 
> /usr/bin/ruby1.8: no such file to load – ubygems (LoadError)

Which gem is it?  
If that is literally says, then the author of that gem misspelled  
rubygems.

Otherwise, you have a path issue.

Respectfully,  
Andrew mcElroy

---

<div class="post-metadata">

**Author:** ![brianwisti](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/fbc32d/32.png) [@brianwisti](https://www.ruby-forum.com/u/brianwisti)\
**Post date:** [February 22, 2010, 3:33am UTC](https://www.ruby-forum.com/t/ubygems-load-error/183863/3 "2010-02-22T03:33:42Z")

</div>

On Sun, Feb 21, 2010 at 6:21 PM, andrew mcelroy [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Which gem is it?  
> If that is literally says, then the author of that gem misspelled rubygems.

Not exactly. ‘ubygems.rb’ ship with RubyGems as a convenience. It  
allows:

ruby -rubygems

rather than

ruby -rrubygems

(note the two r’s).

That still doesn’t help with the problem though. I can’t imagine why  
installing a gem would complain about not being able to find ubygems.

Ben

---

<div class="post-metadata">

**Author:** ![brianwisti](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/fbc32d/32.png) [@brianwisti](https://www.ruby-forum.com/u/brianwisti)\
**Post date:** [February 22, 2010, 11:09am UTC](https://www.ruby-forum.com/t/ubygems-load-error/183863/4 "2010-02-22T11:09:13Z")

</div>

is it maybe ruby1.9 only?  
I see in your command ruby1.8 so that could be the problem?

I could be wrong (probably) but just try to help.

Greets Jeljer

---

<div class="post-metadata">

**Author:** ![brianwisti](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/fbc32d/32.png) [@brianwisti](https://www.ruby-forum.com/u/brianwisti)\
**Post date:** [February 22, 2010, 4:06am UTC](https://www.ruby-forum.com/t/ubygems-load-error/183863/5 "2010-02-22T04:06:51Z")

</div>

Ben B. wrote:

> On Sun, Feb 21, 2010 at 6:21 PM, andrew mcelroy [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> wrote:
> 
> > Which gem is it?  
> > ï¿½If that is literally says, then the author of that gem misspelled rubygems.
> 
> Not exactly. ‘ubygems.rb’ ship with RubyGems as a convenience. It  
> allows:
> 
> ruby -rubygems
> 
> rather than
> 
> ruby -rrubygems
> 
> (note the two r’s).
> 
> That still doesn’t help with the problem though. I can’t imagine why  
> installing a gem would complain about not being able to find ubygems.
> 
> Ben

Hi,

The gem is ffi, which is pretty widely used I think, for calls to C  
libraries.  
I put an issue in with the authors. I don’t have much ruby  
experience,so it might be something I’m doing.

Brian
