Forum: Ruby Ruby 1.9 not finding gems

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
B5be622d0a3cefc2c59f44935fcb433d?d=identicon&s=25 Mark Fraser (mark6139)
on 2009-01-11 10:23
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 '<gemname>'

('no such file to load -- <gemname>').

Any suggestions on what I may be missing?

thanks
851acbab08553d1f7aa3eecad17f6aa9?d=identicon&s=25 Ken Bloom (Guest)
on 2009-01-11 18:10
(Received via mailing list)
On Sun, 11 Jan 2009 04:23:11 -0500, Mark Fraser wrote:

>
> require 'rubygems'
> require '<gemname>'
>
> ('no such file to load -- <gemname>').
>
> 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
6e366eb5a71be2bad7f383d42aeb4788?d=identicon&s=25 Justin Collins (Guest)
on 2009-01-11 19:47
(Received via mailing list)
Mark Fraser wrote:
>
> require 'rubygems'
> require '<gemname>'
>
> ('no such file to load -- <gemname>').
>
> 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
This topic is locked and can not be replied to.