httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wijaya Edward <>
Subject [users@httpd] Finding a locally installed Perl Module by .htaccess ?
Date Thu, 18 May 2006 14:21:57 GMT

<BODY><P>Hi expert, </P>
<P>I have the following simple CGI script, just containg header: </P>
<P><BR>__BEGIN__ <BR>#!/usr/bin/perl -w <BR>use CGI ':standard'; <BR>use
lib "/home/myname/lib/perl5/site_perl/5.8.5/"; <BR>use Mail::Sendmail; <BR>__END__
<P>I also have included this directive in ~/public_html/.htaccess : <BR><BR>SetEnv
PERL5LIB /home/myname/lib/perl5/site_perl/5.8.5 </P>
<P><BR>Since I am not a root user I have installed my module locally <BR>as
shown in the directive above. </P>
<P>Now the problem is that my CGI&nbsp;script above (called temp.cgi) <BR>cannot
recognize the location of my Perl module. <BR>You can try it here: </P>
<P><A href=""></A>
<P><BR>Also in command line: $perl -cT temp.cgi <BR>gave same problem of
failure in recognizing Mail::Sendmail. </P>
<P>What's wrong with my setup? How can I let my cgi script <BR>recognize the Mail::Sendmail
module? </P>
<P>Hope to hear from you again.</P>
<P>--<BR>Regards,<BR>Edward WIJAYA<BR>SINGAPORE</P></BODY>

View raw message