PDA

View Full Version : Perl program won't work?


penelope
04-04-1999, 07:09 PM
Hello all:

I'm having trouble trying to set up our search script. It's a nice search script that stores results in flat text files instead of doing a full site search everytime somebody tries to search, thus resulting in a) better performance for my user and b) less load on the server. :-) I REALLY want to use this perl script.

Code Begin::

#!/usr/bin/perl5.00404
#
# search.pl - The Perlfect Search Engine
# version 1.1
#
# (c) 1998 Giorgos Zervas, Perlfect Solutions
# giorgos@perlfect.com
# http://perlfect.com
#
# 15 November 1998
#
# requires the following perl modules:
# CGI, CGI::Carp, Data: http://www.aota.net/ubb/biggrin.gifumper
#
# requires the following scripts
# indexer.pl >= v1.1
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#


use CGI;
use CGI::Carp qw(fatalsToBrowser);
use Data: http://www.aota.net/ubb/biggrin.gifumper;

my $version = "1.1";

Code End::

it just errors our 500 if I hit it via a web page. perl5.00404 -c or perl5 -c results in:

"Args must match #! line at search.pl line 1."

I'm thinking that we don't have the CGI, CGI::Carp or Data: http://www.aota.net/ubb/biggrin.gifumpter modules installed.

Can someone please help me out?

Thanks VERY much!

Peace,
Penelope

ChrisH
04-08-1999, 12:22 AM
Hi,

Wish I had good news, but maybe this will
give a clue? I just ran this:

#!/usr/bin/perl5.00404 -w

use CGI;
use CGI::Carp qw(fatalsToBrowser);
use Data: http://www.aota.net/ubb/biggrin.gifumper;

my $version = "1.1";

and it seemed to run fine. I'm on the
taz server and haven't mucked (much)
with the default shell settings.

Good Luck!

ch

Terra
04-08-1999, 03:00 AM
locking thread due to duplicate post...

Please look for the other thread entitled the same...

--
Terra
sysAdmin
FutureQuest