Change Gempath at Runtime

M

Michael Boutros

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
 
E

Eric Hodel

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.

This information can be found in `gem help environment`:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top