B
Belorion
Hello. I'm running httpd 2.0.49 on Suse 9.1. I've installed mod_ruby
and eruby. I've installed both the dbi and ruby-mysql packages.
Parsing of .rhtml seems to be working fine. However, if I try
anything database related I encounter a problem. I get the following
error in my apache log:
[error] mod_ruby: /usr/local/lib/ruby/site_ruby/1.8/dbi.rb:1:in
`require': No such file to load -- dbi/dbi (LoadError)
However, if I got into IRB I can do the following just fine:
irb(main):001:0> require 'dbi'
=3D> true
irb(main):002:0> blah=3DDBI.connect(etc)
And it works.
$> ruby -e " require 'dbi'; dbh=3DDBI.connect(...) "
Also works. But I get the above error in apache. I thought it had
something to do with the load path when mod_ruby is loaded, so I did a
dump from an rhtml page of $LOAD_PATH, and I get this:
/usr/local/lib/ruby/site_ruby/1.8:/usr/local/lib/ruby/site_ruby/1.8/i686-li=
nux:/usr/local/lib/ruby/site_ruby:/usr/local/lib/ruby/1.8:/usr/local/lib/ru=
by/1.8/i686-linux:.
dbi is installed in /usr/local/lib/ruby/site_ruby/1.8/dbi, so it would
appear it *should* be loaded just fine.
Any suggestions? Thanks.
Matt
and eruby. I've installed both the dbi and ruby-mysql packages.
Parsing of .rhtml seems to be working fine. However, if I try
anything database related I encounter a problem. I get the following
error in my apache log:
[error] mod_ruby: /usr/local/lib/ruby/site_ruby/1.8/dbi.rb:1:in
`require': No such file to load -- dbi/dbi (LoadError)
However, if I got into IRB I can do the following just fine:
irb(main):001:0> require 'dbi'
=3D> true
irb(main):002:0> blah=3DDBI.connect(etc)
And it works.
$> ruby -e " require 'dbi'; dbh=3DDBI.connect(...) "
Also works. But I get the above error in apache. I thought it had
something to do with the load path when mod_ruby is loaded, so I did a
dump from an rhtml page of $LOAD_PATH, and I get this:
/usr/local/lib/ruby/site_ruby/1.8:/usr/local/lib/ruby/site_ruby/1.8/i686-li=
nux:/usr/local/lib/ruby/site_ruby:/usr/local/lib/ruby/1.8:/usr/local/lib/ru=
by/1.8/i686-linux:.
dbi is installed in /usr/local/lib/ruby/site_ruby/1.8/dbi, so it would
appear it *should* be loaded just fine.
Any suggestions? Thanks.
Matt