I have the following simple CGI script, just containg header:
__BEGIN__
#!/usr/bin/perl -w
use CGI ':standard';
use lib "/home/myname/lib/perl5/site_perl/5.8.5/";
use Mail::Sendmail;
__END__
I also have included this directive in ~/public_html/.htaccess :
SetEnv PERL5LIB /home/myname/lib/perl5/site_perl/5.8.5
Since I am not a root user I have installed my module locally
as shown in the directive above.
Now the problem is that my script above (called temp.cgi)
cannot recognize the location of my Perl module.
You can try it here:
http://defiant.i2r.a-star.edu.sg/~ewijaya/MyTest/cgi-bin/temp.cgi
Also in command line: $perl -cT temp.cgi
gave same problem of failure in recognizing Mail::Sendmail.
What's wrong with my setup? How can I let my cgi script
recognize the Mail::Sendmail module?
Hope to hear from you again.
Regards,
Gundala
--
PLEASE NOTE: comp.infosystems.www.authoring.cgi is a
SELF-MODERATED newsgroup. aa.net and boutell.com are
NOT the originators of the articles and are NOT responsible
for their content.
HOW TO POST to comp.infosystems.www.authoring.cgi:
http://www.thinkspot.net/ciwac/howtopost.html
If you do then I don't think you do not need to set the ENV variable
The requested URL /~ewijaya/MyTest/cgi-bin/temp.cgi ... means that the
script can't be found. Does it exist, is the spelling and path correct
and is it executable?
Do you have other cgi scripts that do work, or is this the first one,
maybe the web server is configured to look for home directory cgi
scripts somewhere else? You don't say
Owen