# Ruby 1.9 not finding gems

**URL:** <https://www.ruby-forum.com/t/ruby-1-9-not-finding-gems/157437>\
**Category:** Ruby\
**Created:** [January 11, 2009, 10:23am UTC](https://www.ruby-forum.com/t/ruby-1-9-not-finding-gems/157437 "2009-01-11T10:23:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mfaine](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b3f665/32.png) [@mfaine](https://www.ruby-forum.com/u/mfaine)\
**Post date:** [January 11, 2009, 10:23am UTC](https://www.ruby-forum.com/t/ruby-1-9-not-finding-gems/157437/1 "2009-01-11T10:23:47Z")

</div>

Hello,

I installed Ruby 1.9.1 on OSX Tiger using MacPorts.

Then I installed Rubygems into the new installation (by running the  
setup.rb after changing my path to point to the new ruby executable).

Any gems that I install install fine and show up in ‘gem list --local’  
…and I verified that they are in the gems location in the ruby 1.9  
installation. But I am unable to load them using:

require ‘rubygems’  
require ‘’

('no such file to load – ').

Any suggestions on what I may be missing?

thanks

---

<div class="post-metadata">

**Author:** ![mfaine](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b3f665/32.png) [@mfaine](https://www.ruby-forum.com/u/mfaine)\
**Post date:** [January 11, 2009, 6:10pm UTC](https://www.ruby-forum.com/t/ruby-1-9-not-finding-gems/157437/2 "2009-01-11T18:10:39Z")

</div>

On Sun, 11 Jan 2009 04:23:11 -0500, Mark F. wrote:

> require ‘rubygems’  
> require ‘’
> 
> ('no such file to load – ').
> 
> Any suggestions on what I may be missing?
> 
> thanks

You’re supposed to load by filename within the gems, rather than put the  
gem name itself. For example, gem install SqlStatement, then require  
‘sqlstatement’

–Ken

---

<div class="post-metadata">

**Author:** ![mfaine](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b3f665/32.png) [@mfaine](https://www.ruby-forum.com/u/mfaine)\
**Post date:** [January 11, 2009, 7:47pm UTC](https://www.ruby-forum.com/t/ruby-1-9-not-finding-gems/157437/3 "2009-01-11T19:47:42Z")

</div>

Mark F. wrote:

> require ‘rubygems’  
> require ‘’
> 
> ('no such file to load – ').
> 
> Any suggestions on what I may be missing?
> 
> thanks

1.9.1 comes with Ruby Gems, you shouldn’t have to install it separately.  
I would guess you overwrote the 1.9.1 gem stuff.

-Justin
