startup.pl cannot be run from the command line when it
contains apache server specific modules.

Jaye Mathisen wrote:

> uwb-02-chroot# uname -a
> FreeBSD uwb-02.cdsnet.net 4.3-STABLE FreeBSD 4.3-STABLE #0: Fri Aug  3 11:43:20 PDT 
>200
> uwb-02-chroot# perl -v
> This is perl, v5.6.1 built for i386-freebsd
>
> uwb-02-chroot# cat /usr/local/etc/apache/startup.pl
> #!/usr/bin/perl
>
> use Apache;
> use Apache::Status;
> use Apache::DBI;
> use Apache::DBILogger;
>
> 1;
>
> uwb-02-chroot# ./startup.pl
> Can't locate object method "module" via package "Apache" (perhaps you forgot to load 
>"Apache"?) at /usr/local/lib/perl5/site_perl/5.6.1/Apache/DBI.pm line 202.
> Compilation failed in require at ./startup.pl line 5.
> BEGIN failed--compilation aborted at ./startup.pl line 5.
>
> So if I comment out the Apache->module("Apache::Status") temporarily, it runs from
> the command prompt.
>
> However, when run under Apache
>
> PerlRequire /usr/local/etc/apache/startup.pl
>
> [Mon Aug  6 17:33:09 2001] [error] Can't load 
>'/usr/local/lib/perl5/site_perl/5.6.1/i386-freebsd/auto/DBI/DBI.so' for module DBI: 
>/usr/local/lib/perl5/site_perl/5.6.1/i386-freebsd/auto/DBI/DBI.so: Undefined symbol 
>"PL_dowarn" at
> Not sure what's up.

--
___cliff [EMAIL PROTECTED]http://www.genwax.com/


Reply via email to