Forum: Ruby Change Gempath at Runtime

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.
2d66c63b4d8193d0279bd18200e109d3?d=identicon&s=25 Michael Boutros (michaelboutros)
on 2009-01-29 02:35
Hello,

I have a problem with my host. I have several gems installed through
cPanel and even directly using the 'gem' command, but my Ruby scripts
can not locate them because apparently the Gem path is not correctly
set. Is there any way to tell Ruby where to look for gems during
runtime?

I tried to unpack each gem and require it separately, but the gems are
not built for this, since it throw a file not found error if a gem, say
Nokogiri, tries to do "require 'nokogiri/xml'".

Any other possible solutions would be greatly appreciated.

Thanks,
Michael Boutros
58479f76374a3ba3c69b9804163f39f4?d=identicon&s=25 Eric Hodel (Guest)
on 2009-01-29 02:39
(Received via mailing list)
On Jan 28, 2009, at 17:33 PM, Michael Boutros wrote:
>
> Any other possible solutions would be greatly appreciated.

This information can be found in `gem help environment`:
2d66c63b4d8193d0279bd18200e109d3?d=identicon&s=25 Michael Boutros (michaelboutros)
on 2009-01-29 02:57
Eric,

It looks like the gems are being looked for in the right place, but are
not being found. Output posted to http://gist.github.com/54320 for the
sake of readability.
This topic is locked and can not be replied to.