G
Gary Hartl
Hello all again,
I'm not much of a perl programer but I am trying to get this script to
run and it is giving me a headache
I'm getting premature end of script header errors and I'm pretty sure
why.
Here is everything I think is important for this situation, if i'm
missing something please let me know and I'll supply anything else.
I have some .pm files ina directory called /home/mach10/dist/lib
the first line of the script calls
use lib ($ENV{'MACH10_LIB'} || '/home/mach10/dist/lib');
then it calls the offending module:
use Skyweb;
seems like that should work for me ( with my limited knowledge )
now if i try to run the script from browswer i get the follow error in
my apache logs:
Can't locate Skyweb.pm in @INC (@INC contains: /home/mach10/dist/lib
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at
/usr/local/apache/cgi-bin/sp/mach10.pl line 4.
BEGIN failed--compilation aborted at
/usr/local/apache/cgi-bin/sp/mach10.pl line 4.
[Tue Nov 4 16:23:16 2003] [error] [client 192.168.1.101] Premature
end of script headers: /usr/local/apache/cgi-bin/sp/mach10.pl
I'm so novice to perl that i'm completely lost....anyone have any
ideas.
Thanks for all the help in advance.
Gary
I'm not much of a perl programer but I am trying to get this script to
run and it is giving me a headache
I'm getting premature end of script header errors and I'm pretty sure
why.
Here is everything I think is important for this situation, if i'm
missing something please let me know and I'll supply anything else.
I have some .pm files ina directory called /home/mach10/dist/lib
the first line of the script calls
use lib ($ENV{'MACH10_LIB'} || '/home/mach10/dist/lib');
then it calls the offending module:
use Skyweb;
seems like that should work for me ( with my limited knowledge )
now if i try to run the script from browswer i get the follow error in
my apache logs:
Can't locate Skyweb.pm in @INC (@INC contains: /home/mach10/dist/lib
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at
/usr/local/apache/cgi-bin/sp/mach10.pl line 4.
BEGIN failed--compilation aborted at
/usr/local/apache/cgi-bin/sp/mach10.pl line 4.
[Tue Nov 4 16:23:16 2003] [error] [client 192.168.1.101] Premature
end of script headers: /usr/local/apache/cgi-bin/sp/mach10.pl
I'm so novice to perl that i'm completely lost....anyone have any
ideas.
Thanks for all the help in advance.
Gary