Re: cgi.pm and related issues
On Tue, Oct 12, 2004 at 08:01:14PM +0100, Jon Dowland wrote:
> On Tue, 12 Oct 2004 14:28:52 -0400, Antonio Rodriguez
> <arodriguez31@cfl.rr.com> wrote:
> > I have some problems with cgi that I can't figure out. I've installed
> > every package that has cgi.pm,
>
> To see if you have CGI.pm handy in Perl's include path, execute the following
>
> $ find `perl -e 'print "@CGI"'` -name \*.pm -print | grep -i cgi
>
This is weird:
tony@hpd:~$ find `perl -e 'print "@CGI"'` -name \*.pm -print | grep -i cgi
tony@hpd:~$
Nothing.
> Do you have libcgi-perl installed? I gather from your URL that you are
> using unstable. You could use the debian packages to get your perl
> stuff, or CPAN:
>
> # perl -MCPAN -e 'install CGI'
>
> perhaps. Think about which route you want before you go down that path though
>
tony@hpd:~$ dpkg -s libcgi-perl
Package: libcgi-perl
Status: install ok installed
Priority: optional
Section: perl
Installed-Size: 412
Maintainer: Manoj Srivastava <srivasta@debian.org>
Architecture: all
> > [Tue Oct 12 14:19:42 2004] [error] (2)No such file or directory: exec of /home/tony/cgi/try failed
> > [Tue Oct 12 14:19:42 2004] [error] [client 127.0.0.1] Premature end of script headers: /home/tony/cgi/try
>
> What lines have you added to httpd.conf (and other conf modules)
> relating to the directory /home/tony/cgi ? Should it not be something
> like cgi-bin, or /home/tony/public_html/cgi ? Is here a .htaccess file
> in this directory, if so what is the contents?
ScriptAlias /cgi/ /home/tony/cgi/
#and a little after
<Directory /home/tony/cgi/>
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
I think that this is not the problem because another script that I
copied into the same directory from begining perl at
http://learnperl.org did work fine.
Reply to: