Forgot to post to the list. A little thing I forgot in the private
mail, adding "PerlModule Apache::DBI DBD::Mysql" in my httpd.conf gave
me the following warning:

[error] Can't locate object method "require_version" via package "DBI"
(perhaps you forgot to load "DBI"?) at
/usr/local/lib/perl5/site_perl/5.8.7/Apache/DBI.pm line
10.\nCompilation failed in require at (eval 6) line 3.\n

Cheers

  Nik



Hi Tom,
thanks for the pointers. The script you gave me produces the following output:

Include: 
/my/include/modperl;/usr/local/lib/perl5/site_perl/5.8.7/mach/Bundle;/usr/local/lib/perl5/site_perl/5.8.7/mach;/usr/local/lib/perl5/site_perl/5.8.7;/usr/local/lib/perl5/site_perl;/usr/local/lib/perl5/5.8.7/BSDPAN;/usr/local/lib/perl5/5.8.7/mach;/usr/local/lib/perl5/5.8.7;.;/usr/local
Loaded Libs: 
re.pm;APR/Const.pm;File/Spec/Functions.pm;Apache2/URI.pm;APR/Status.pm;warnings.pm;Apache2/Connection.pm;Apache2/XSLoader.pm;BSDPAN/Override.pm;Apache2/Util.pm;Fcntl.pm;BSDPAN.pm;Symbol.pm;Exporter.pm;ModPerl/RegistryCooker.pm;Apache/compat.pm;Apache2/Response.pm;File/Spec.pm;Apache2/Const.pm;Apache2/ServerUtil.pm;APR/Date.pm;ModPerl/Global.pm;mod_perl.pm;warnings/register.pm;XSLoader.pm;APR/Bucket.pm;Apache2/SubRequest.pm;Apache2/Log.pm;ModPerl/Const.pm;Apache/Table.pm;Apache2/Filter.pm;APR/URI.pm;DBI.pm;base.pm;APR/Util.pm;File/Basename.pm;Config.pm;Apache2/RequestRec.pm;ModPerl/Util.pm;APR/Pool.pm;mod_perl2.pm;Carp.pm;File/Spec/Unix.pm;Exporter/Heavy.pm;Apache2/RequestUtil.pm;APR.pm;Apache.pm;strict.pm;vars.pm;APR/XSLoader.pm;constant.pm;Apache2/ServerRec.pm;Apache2/Access.pm;Apache2.pm;Apache/Constants.pm;APR/Brigade.pm;AutoLoader.pm;Apache2/Module.pm;ModPerl/Registry.pm;DynaLoader.pm;Apache2/RequestIO.pm;Apache/File.pm;APR/Table.pm

Its worth noting that $DBI::VERSION doesn't print anything.
/usr/local/lib/perl5/site_perl/5.8.7/mach is in my path but
/usr/local/lib/perl5/site_perl/5.8.7/mach/DBI isn't. DBI.pm is in
/usr/local/lib/perl5/site_perl/5.8.7/Apache/DBI.pm *AND*
/usr/local/lib/perl5/site_perl/5.8.7/mach/DBI.pm

As far as I can figure out, DBI.pm should be found, and it should be
the last one, mach/DBI.pm. I really can''t see that Apache/DBI.pm will
be loaded. Should I modify the INC path to include that one? If so, is
there an rc-file somewhere that I could modify?

Cheers

  Nik

Reply via email to