Skip to main content.
home | support | download

Back to List Archive

Re: How to install Perl Packages?

From: David L Norris <dave(at)not-real.webaugur.com>
Date: Fri Jun 07 2002 - 07:34:51 GMT
On Fri, 2002-06-07 at 02:12, Bill Moseley wrote:
> At 12:02 AM 06/07/02 -0700, David L Norris wrote:
> >It seems important that you remove the shebang line (else it tries to
> >execute it):
> >#!/usr/local/bin/perl
> Weird.

I think _maybe_ this is only a problem with the .cgi extension.  It
seems to work fine with the .pl extension.

> For the fun of it you might try creating a .swishcgi.conf file.  That would
> avoid having to edit the actual script.

Great! I was wondering what .swishcgi.conf did.  That could be good
indeed!  I could probably have the Win32 installer script write out a
working default config file!

> .swishcgi.conf
> --------------
> unshift @INC, 'C:/swish-e/example/modules';
> 
> return {
>   swish_binary => "c:/swish-e/swish-e.exe",
>   swish_index => "c:/swish-e/index.swish-e",
> };

Cool!  It works as-is.  And, .swishcgi.conf works with the default
swish.cgi (simply renamed to swish.pl)!


Oooh!  If I use the default swish.pl (renamed swish.cgi) script
_without_ the .swishcgi.conf file it prompts me to download!

Contents of the saved file are:

Content-Type: text/html

<html>
<head><title>Software Error</title></head>
<body><h2>Software Error<h2><p>Please check error log</p></body>
</html>

-- 
 David Norris
  Dave's Web - http://www.webaugur.com/dave/
  Augury Net - http://augur.homeip.net/
  ICQ - 412039
Received on Fri Jun 7 07:38:18 2002