You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Brenda Washington <bw...@pnc.edu> on 2005/11/10 21:43:43 UTC

Testing problem

I'm getting this error message when I run a t/TEST.  Does anyone know why I'm getting this error? 



Starting program: /usr/local/apache2/bin/httpd -D ONE_PROCESS -d /opt/apache/mod_perl-2.0.1/t -f /opt/apache/mod_perl-2.0.1/t/conf/httpd.conf -D APACHE2
[Thu Nov 10 14:29:53 2005] [info] 6 Apache2:: modules loaded
[Thu Nov 10 14:29:53 2005] [info] 0 APR:: modules loaded
[Thu Nov 10 14:29:53 2005] [info] base server + 27 vhosts ready to run tests
[Thu Nov 10 14:30:02 2005] [error] Insecure directory in $ENV{PATH} while running with -T switch at /opt/apache/mod_perl-2.0.1/Apache-Test/lib/Apache/TestConfig.pm line 1059.\nCompilation failed in require at /opt/apache/mod_perl-2.0.1/t/conf/modperl_startup.pl line 17.\n\t...propagated at /opt/apache/mod_perl-2.0.1/t/conf/modperl_startup.pl line 18.\nBEGIN failed--compilation aborted at /opt/apache/mod_perl-2.0.1/t/conf/modperl_startup.pl line 20.\nCompilation failed in require at (eval 2) line 1.\n
[Thu Nov 10 14:30:02 2005] [error] Can't load Perl file: /opt/apache/mod_perl-2.0.1/t/conf/modperl_startup.pl for server localhost:8529, exiting...





Re: Testing problem

Posted by Stas Bekman <st...@stason.org>.
Brenda Washington wrote:
> I'm getting this error message when I run a t/TEST.  Does anyone know why I'm getting this error? 
> 
> 
> 
> Starting program: /usr/local/apache2/bin/httpd -D ONE_PROCESS -d /opt/apache/mod_perl-2.0.1/t -f /opt/apache/mod_perl-2.0.1/t/conf/httpd.conf -D APACHE2
> [Thu Nov 10 14:29:53 2005] [info] 6 Apache2:: modules loaded
> [Thu Nov 10 14:29:53 2005] [info] 0 APR:: modules loaded
> [Thu Nov 10 14:29:53 2005] [info] base server + 27 vhosts ready to run tests
> [Thu Nov 10 14:30:02 2005] [error] Insecure directory in $ENV{PATH} while running with -T switch at /opt/apache/mod_perl-2.0.1/Apache-Test/lib/Apache/TestConfig.pm line 1059.\nCompilation failed in require at /opt/apache/mod_perl-2.0.1/t/conf/modperl_startup.pl line 17.\n\t...propagated at /opt/apache/mod_perl-2.0.1/t/conf/modperl_startup.pl line 18.\nBEGIN failed--compilation aborted at /opt/apache/mod_perl-2.0.1/t/conf/modperl_startup.pl line 20.\nCompilation failed in require at (eval 2) line 1.\n

Brenda, can you please send the output of:

% perl -le 'print $ENV{PATH}'

most likely you have a . or .. in it, which would explain the problem.

Meanwhile try to explicitly set it:

env PATH=/bin:/usr/bin t/TEST

adjust PATH to include what you need. if you run under bash shell you 
don't need the 'env' part.

-- 
_____________________________________________________________
Stas Bekman mailto:stas@stason.org  http://stason.org/
MailChannels: Assured Messaging(TM) http://mailchannels.com/
The "Practical mod_perl" book       http://modperlbook.org/
http://perl.apache.org/ http://perl.org/ http://logilune.com/