[San-Diego-pm] Mason
Emile Aben
emileaben at yahoo.com
Mon Aug 2 10:44:23 CDT 2004
Hi Dirk,
some things I can think of:
* is the module readable by the user that executes the
script (typically 'nobody' for cgi-scripts)?
* does your script use perl5.8.0 or is there another
perl on your machine that is used and that doesn't
have HTML::Mason in the library path. Do a 'perl -V'
for the perl that is in the #!-line of your script to
find out.
* another way to quickly find out if a module is
usable by a specific perl version is:
/usr/bin/perl -MHTML::Mason -e1
hope this helps,
Emile
--- Dirk2 <Dirk at finches.com> wrote:
> Perl Mongers,
>
>
> I'm trying to use the Mason module. I went to CPAN
> and loaded it, and
> it seemed to load OK- installed without errors, and
> it's here:
>
> /usr/lib/perl5/site_perl/5.8.0/HTML/Mason.pm
>
> But now my script can't find it.
> Here's the httpd error entries from log:
>
>
>
>
>
> [Thu Jul 29 12:11:11 2004] [error] [client
> 127.0.0.1] Premature end of
> script headers: mason.pl
>
> [Thu Jul 29 12:11:11 2004] [error] [client
> 127.0.0.1] Can't locate
> HTML/Mason.pm in @INC
>
> (@INC contains:
> /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
> /usr/lib/perl5/5.8.0/i386-linux-thread-multi
> /usr/lib/perl5/5.8.0
> .)
>
> at /var/www/cgi-bin/mason.pl line 5.
>
>
> [Thu Jul 29 12:11:11 2004] [error] [client
> 127.0.0.1] BEGIN
> failed--compilation aborted at
> /var/www/cgi-bin/mason.pl line 5.
>
>
> _______________________________________________
> San-Diego-pm mailing list
> San-Diego-pm at pm.org
> http://www.pm.org/mailman/listinfo/san-diego-pm
>
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail
More information about the San-Diego-pm
mailing list