perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Quatravaux <...@idealx.com>
Subject Re: [WISHLIST] Be able to troubleshoot config file with perl -cx as before
Date Wed, 02 Feb 2005 10:58:54 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Stas Bekman wrote:

|
| This is not going to work, since it requires a running mod_perl.

I understand this, and my [WISH] was that it be taught not to.

| I'm pretty sure the perl -cx worked in mp1 only in certain cases,
| where no mod_perl symbols were used. Try the modperl1 config where
| you use some Apache module and you will get the same problem.
|
Since they do nothing too fancy in their BEGIN blocks, all modules in
mod_perl 1 except Apache::test compile OK from /usr/bin/perl (even
though calling any of their subs could obviously fail):

$ for i in `dpkg -L libapache-mod-perl | grep 'pm$' | perl -pe
's|/usr/lib/perl5/(.*).pm|$1|;   s|/|::|g;'`; do perl -M$i -e 1 ||
echo $i; done
Can't locate Apache/test.pm in @INC (@INC contains:
/usr/local/lib/perl/5.6.1 /usr/local/share/perl/5.6.1 /usr/lib/perl5
/usr/share/perl5 /usr/lib/perl/5.6.1 /usr/share/perl/5.6.1
/usr/local/lib/site_perl .).
BEGIN failed--compilation aborted.
Apache::test

Having just "Apache::Compat" compile OK in mod_perl 2 would be enough
for my needs.

- --
Dominique QUATRAVAUX                           Ingénieur senior
01 44 42 00 08                                 IDEALX

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

iD8DBQFCALJtMJAKAU3mjcsRAhfOAKC+K7vOlXsK0coqtbt4OuDZ+oSjgQCgnIo9
xDDaabqSgYqF49XThsYphHc=
=qsu7
-----END PGP SIGNATURE-----



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message