From: Belorion Date: 2005-05-16T07:13:38+09:00 Subject: mod_ruby + dbi inconsistency 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' => true irb(main):002:0> blah=DBI.connect(etc) And it works. $> ruby -e " require 'dbi'; dbh=DBI.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-linux:/usr/local/lib/ruby/site_ruby:/usr/local/lib/ruby/1.8:/usr/local/lib/ruby/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