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

Just to close this thread a give a solution to users running into the
same problem:

What was the problem:
- ---------------------
Because one of the entries in the INC-Path was
"/usr/local/lib/perl5/site_perl/5.8.7/mach/Bundle" at a very early
position. Every call "use DBI". Resulted in loading of Bundle::DBI, so
it seemed that the DBI was loaded approriately which was not the case =>
hence e.g. $DBI::VERSION didn't return anything because we loaded
Bunde::DBI.

The solution:
- -------------
Having noticed that Niklas and I search where this really nasty
path-setting was coming from and found the culprit in /etc/profile.
Removing the value from there resolved the problem.

So if one of the free-bsd maintainers is reading this list it would be
nice if:
a) /etc/profile is patched and PERL5LIB is removed or set to a
meaningful value which doesn't hurt anyone.
b) before starting apache resetting the PERL5LIB


Tom


Tom Schindl schrieb:
> Tom Schindl schrieb:
> 
>>>Niklas Saers schrieb:
>>>
>>>
>>>>>Forgot to post to the list. A little thing I forgot in the private
>>>
>>>
>>>[...]
>>>
>>>
>>>
>>>>>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
>>>>>
>>>
>>>
>>>What's in:
>>>/usr/local/lib/perl5/site_perl/5.8.7/mach/Bundle
>>>
>>>I'm not sure but I have the feeling that this should not be part of the
>>>lib-path because e.g. on my station this wouldn't work either because
>>>there is a Bundle::DBI and when typing use DBI it will be loaded instead
>>>of the real DBI.
>>>
>>>You seem to modify the INC-Path somewhere adding e.g.
>>>/my/include/modperl, ...
>>>
>>>please post the output of your "perl -V".
>>>
>>>Tom
> 
> 
> Could you please remove all PerlModule directives from you httpd.conf.
> They are not needed any more. At least Apache2 modifies the @INC and
> maybe things go wrong there now that we have shifted really to
> Apache2::-Namespace.
> 
> Tom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCzSoqkVPeOFLgZFIRAtl1AJ9bx4YMrEnsfh49jtEQD9AXuIrEGQCfafY2
i7oCVzoXY6t0b/nG4Sinw3M=
=Tc1z
-----END PGP SIGNATURE-----

Reply via email to