You are not logged in.
Pages: 1
As root I've used "gem install" to install a number of gems. The files appear in /usr/lib/ruby/gems/1.8/gems and some users can access them but others can't. They get errors like this:
./docx.rb:3:in `require': no such file to load -- zip/zip (LoadError)
from ./docx.rb:3
I guess that it is a path issue but I compared the working and non-working users looking for RUBYLIB or RUBYPATH but no one has it set. Can anyone suggest what the differences could be?
Offline
The line
require 'rubygems'
is required before you include other gems in your script.
Last edited by lamnk (2009-01-06 05:52:15)
Offline
I think as an alternative you can do this:
export RUBYOPT="rubygems"
before running the script.
Offline
Btw, i had an identical problem with the xml-mapping gem. This gem always complains although other gems work. It turns out to be a permission problem, and you must chmod the library files to 644 so that your users can access them.
Last edited by lamnk (2009-01-06 19:58:02)
Offline
Pages: 1