-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Niklas Saers schrieb:
> Hi guys,
> thank you very much for helping out. :-)
> 
> John, I have installed the modules and the script runs when running it
> as a CGI. What I don't know is if the driver has been installed for
> mod_perl as I don't know how much mod_perls include paths differ from
> regular perl. Could you tell me how I find out if its installed
> correct for mod_perl?
> 
> David, thank you very much for your pointers and introduction. Right
> now I prefer cgi-like approach, but I'll definately look into the
> handlers later on.
> 
> Tom, what is a Registry-Script? I'm using mod_perl 2.0.1, Perl 5.8.7,
> DBI 1.4.8 and DBD-mysql41 2.9008. What config would you like? I've put
> the httpd.conf at http://www.ab.no/httpd.conf, the mod_perl part of it
> being:

Exactly what you are using.

Simply dump @INC like this:
- ---------------------------8<---------------------------
use DBI;
print "Include: " . ( join ";",@INC) . "\n";
print "Loaded Libs: " . ( join ";",keys %INC ) . "\n";
print "$DBI::VERSION\n";
- ---------------------------8<---------------------------

Read about PerlRequire here:
http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlRequire_
http://perl.apache.org/docs/1.0/guide/config.html#PerlModule_and_PerlRequire_Directives

Still modifying the INC-Path won't solve your problem maybe there's
somewhere a DBI.pm left form an older installation. Search your @INC
(normally /usr/lib/perl5) for DBI.pm

Tom

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCzPfLkVPeOFLgZFIRAgJMAJ4sikvcI7X1Ddj22Oq/wamuDbzlIgCfbGVP
s9CIql7ZPjZYs26gTGsFCUE=
=b4xI
-----END PGP SIGNATURE-----

Reply via email to