Re: Another install question: CGI.pm not found

1999-12-22 Thread Bill Moseley

(previously in this thread: make test is failing for modules/cgi, and the
reason is the shebang line in t/net/perl/cgi.pl is pointing to an old
version of perl.)

At 01:34 PM 12/21/99 -0800, Doug MacEachern wrote:
>> 79) %grep cgi.pl t/logs/error_log
>> Can't locate CGI.pm in @INC at
>> /data/_g/lii/apache/src/heavy/mod_perl-1.21/t/net/perl/cgi.pl line 3.
>
>again, I don't think it's possible for 5.005+ to produce this error
>message without listing the contents of @INC.  cgi.pl is generated from
>cgi.pl.PL and also tested under mod_cgi, have a look, maybe the
>#!/.../perl line is wrong?

Yes, you are correct.  I know I'm missing something obvious, but I'm still
unclear how to fix it.

I thought using --with-perl would solve the problem, but no luck.

% /usr/local/bin/perl5.00503 Makefile.PL \
APACHE_PREFIX=$HOME/httpd_heavy \
APACHE_SRC=../apache_1.3.9/src \
DO_HTTPD=1 \
USE_APACI=1 \
EVERYTHING=1 \
APACI_ARGS=--with-perl=/usr/local/bin/perl5.00503

But that still leaves shebang as #!/usr/local/bin/perl which is perl 5.002

And also, I'm curious why the following two builds set the shebang line
correctly, especially when building with the local copy of perl.

These two work correctly:

% $HOME/perltest/bin/perl Makefile.PL \
APACHE_PREFIX=$HOME/httpd_heavy \
APACHE_SRC=../apache_1.3.9/src \
DO_HTTPD=1 \
USE_APACI=1 \
EVERYTHING=1


% /usr/local/bin/perl5.005 Makefile.PL \
APACHE_PREFIX=$HOME/httpd_heavy \
APACHE_SRC=../apache_1.3.9/src \
DO_HTTPD=1 \
USE_APACI=1 \
EVERYTHING=1



Bill Moseley
mailto:[EMAIL PROTECTED]



Re: Another install question: CGI.pm not found

1999-12-21 Thread Doug MacEachern

> 79) %grep cgi.pl t/logs/error_log
> Can't locate CGI.pm in @INC at
> /data/_g/lii/apache/src/heavy/mod_perl-1.21/t/net/perl/cgi.pl line 3.

again, I don't think it's possible for 5.005+ to produce this error
message without listing the contents of @INC.  cgi.pl is generated from
cgi.pl.PL and also tested under mod_cgi, have a look, maybe the
#!/.../perl line is wrong?



Re: Another install question: CGI.pm not found

1999-12-21 Thread Doug MacEachern

On Thu, 16 Dec 1999, Bill Moseley wrote:

> What obvious thing am I missing?
> 
> During make test this gets written to the error log:
> 
> Can't locate CGI.pm in @INC at /mod_perl-1.21/t/net/perl/cgi.pl line 7.

that's a strange error, because 5.005+ reports the @INC paths, e.g.:
% perl -MNotHere
Can't locate NotHere.pm in @INC (@INC contains:
/usr/local/devperl/lib/5.00563/i686-linux /usr/local/devperl/lib/5.00563
/usr/local/devperl/lib/site_perl/5.00563/i686-linux
/usr/local/devperl/lib/site_perl .).
BEGIN failed--compilation aborted.

maybe you're picking up an old perl in your path somehow?



Re: Another install question: CGI.pm not found

1999-12-17 Thread Bill Moseley

At 11:13 AM 12/17/99 +0100, Kees Vonk 7249 24549 wrote:
>> Can't locate CGI.pm in @INC at 
>/mod_perl-1.21/t/net/perl/cgi.pl line 7.
>
>If CGI.pm readable by the user running apache?
>
Yes.

125) ~ %/usr/local/bin/perl5.00503 -MCGI -e 'print $CGI::VERSION,"\n"'
2.46



Bill Moseley
mailto:[EMAIL PROTECTED]



Re: Another install question: CGI.pm not found

1999-12-17 Thread Kees Vonk 7249 24549

> Can't locate CGI.pm in @INC at 
/mod_perl-1.21/t/net/perl/cgi.pl line 7.

If CGI.pm readable by the user running apache?



Re: Another install question: CGI.pm not found

1999-12-16 Thread Bill Moseley

Allow me to better describe what's happening.  

Here's the summary:
The site I'm working on built a new version of perl.  Old 5.005, and the
new is 5.005_03.

I can build mod_perl fine using the old 5.005, but not the new 5.005_03.

I'm not building any of this as root, but that shouldn't be a problem.

Ok, I just download my own copy of perl 5.005_03 and built it in a local
directory and used that to build mod_perl.  That worked just fine.

Question:
How do I figure out what's the problem with the new build of 5.005_03?
Would posting -V from the various perl's help?

Here's how I'm building.

61) %/usr/local/bin/perl5.005 Makefile.PL \
? APACHE_PREFIX=$HOME/httpd_heavy \
? APACHE_SRC=../apache_1.3.9/src \
? DO_HTTPD=1 \
? USE_APACI=1 \
? EVERYTHING=1
[...]
make
make test

All tests successful, 8 tests skipped.
Files=36,  Tests=370, 19 wallclock secs (13.20 cusr +  2.60 csys = 15.80 CPU)
kill `cat t/logs/httpd.pid`
rm -f t/logs/httpd.pid
rm -f t/logs/error_log

OK.  So now try with this with perl 5.005_03

69) %/usr/local/bin/perl5.00503 Makefile.PL \
? APACHE_PREFIX=$HOME/httpd_heavy \
? APACHE_SRC=../apache_1.3.9/src \
? DO_HTTPD=1 \
? USE_APACI=1 \
? EVERYTHING=1
[...]
make
make test

letting apache warm up...done
/usr/local/bin/perl5.00503 t/TEST 0
modules/actions.ok
modules/cgi.FAILED test 5
Failed 1/5 tests, 80.00% okay
modules/constants...ok
modules/cookie..skipping test on this platform
modules/fileok
modules/httpdconf...ok
modules/include.FAILED tests 2, 4
Failed 2/4 tests, 50.00% okay
modules/log.ok

79) %grep cgi.pl t/logs/error_log
Can't locate CGI.pm in @INC at
/data/_g/lii/apache/src/heavy/mod_perl-1.21/t/net/perl/cgi.pl line 3.
BEGIN failed--compilation aborted at
/data/_g/lii/apache/src/heavy/mod_perl-1.21/t/net/perl/cgi.pl line 3.
[Thu Dec 16 16:55:27 1999] [error] [client 127.0.0.1] Premature end of
script headers: /data/_g/lii/apache/src/heavy/mod_perl-1.21/t/net/perl/cgi.pl
Can't locate CGI.pm in @INC at
/data/_g/lii/apache/src/heavy/mod_perl-1.21/t/net/perl/cgi.pl line 3.
BEGIN failed--compilation aborted at
/data/_g/lii/apache/src/heavy/mod_perl-1.21/t/net/perl/cgi.pl line 3.
[Thu Dec 16 16:55:30 1999] [error] [client 127.0.0.1] Premature end of
script headers: /data/_g/lii/apache/src/heavy/mod_perl-1.21/t/net/perl/cgi.pl
Can't locate CGI.pm in @INC at
/data/_g/lii/apache/src/heavy/mod_perl-1.21/t/net/perl/cgi.pl line 3.
BEGIN failed--compilation aborted at
/data/_g/lii/apache/src/heavy/mod_perl-1.21/t/net/perl/cgi.pl line 3.
[Thu Dec 16 16:55:30 1999] [error] [client 127.0.0.1] Premature end of
script headers: /data/_g/lii/apache/src/heavy/mod_perl-1.21/t/net/perl/cgi.pl

125) ~ %/usr/local/bin/perl5.00503 -MCGI -e 'print $CGI::VERSION,"\n"'
2.46

Bill Moseley
mailto:[EMAIL PROTECTED]



Re: Another install question: CGI.pm not found

1999-12-16 Thread dreamwvr

hi bill,
i am not sure if this is the answer that you are looking for but i have
had the same prob with @INC as well;-)() really is a drag. anyways i have 
tried push .. into the array as well as use. the only one that i have not tried 
is to explicitly call it when you do your !#/bin/perl as this i believe does 
work.. hope this helps and let me know what did work for you..
   Regards,
[EMAIL PROTECTED]




Another install question: CGI.pm not found

1999-12-16 Thread Bill Moseley

What obvious thing am I missing?

During make test this gets written to the error log:

Can't locate CGI.pm in @INC at /mod_perl-1.21/t/net/perl/cgi.pl line 7.

Ok, so I print out @INC in cgi.pl.

78) %head t/net/perl/cgi.pl
#!/usr/local/bin/perl

BEGIN {
  print STDERR join("\n", @INC), "\n";
}

use CGI ();
use strict;

my $r = CGI->new;


And the printing of @INC shows:

/mod_perl-1.21/blib/lib
/mod_perl-1.21/blib/arch
/mod_perl-1.21/t/docs
/mod_perl-1.21/blib/lib
/mod_perl-1.21/blib/arch
blib/arch
blib/lib
/usr/local/lib/perl5/5.00503/sun4-solaris
/usr/local/lib/perl5/5.00503  
/usr/local/lib/perl5/site_perl/5.005/sun4-solaris
/usr/local/lib/perl5/site_perl/5.005

74) %find /usr/local/lib/perl5 -name CGI.pm
/usr/local/lib/perl5/5.00503/CGI.pm

Is @INC not what I think it is at that point?

Bill Moseley
mailto:[EMAIL PROTECTED]