Skip to main content.
home | support | download

Back to List Archive

Missing bracket

From: Dennis Daupert <ddaupert(at)not-real.csc.com>
Date: Thu Jan 02 2003 - 18:17:16 GMT
PROBLEM SUMMARY: I'm trying to use the perl cgi script swish.cgi that
came bundled with the 2.2.3 distro in the examples directory. My web
error log says there is a missing right curly or square bracket. Yet the
script runs fine at the command line. Any clues?

MY SYSTEM INFO:
swish-e -V
SWISH-E 2.2.3

uname -a
Linux hdeteam 2.4.18-4GB #1 Wed Mar 27 13:57:05 UTC 2002 i686 unknown

SETUP SUMMARY:
I built swish-e 2.2.3 ok
I indexed the apache/htdocs directory ok
I followed the basic config setup given in perldoc swish.cgi (found in
the swish-e-2.2.3/example dir) including the recommended configuration
file; then did these steps:

First, make sure the program compiles correctly:

     > perl -c swish.cgi
     ** It does -- swish.cgi syntax OK

Next, simply try running the program:

     > ./swish.cgi | head
     **It runs fine

Test with your web server

     I created a symlink
     ran GET http://localhost/swishdir/swish.cgi | head
     ++ I get 'Server Error'
     ** apache error_log reports:
     Variable "$DEFAULT_CONFIG_FILE" will not stay shared at
/usr/local/apache/perl/swishdir/swish.cgi line 142.
     Variable "%cached_configs" will not stay shared at
/usr/local/apache/perl/swishdir/swish.cgi line 533.
     Variable "%cached_configs" will not stay shared at
/usr/local/apache/perl/swishdir/swish.cgi line 543.
     Variable "$DEFAULT_CONFIG_FILE" will not stay shared at
/usr/local/apache/perl/swishdir/swish.cgi line 583.
     [Thu Jan  2 12:47:01 2003] [error] Missing right curly or square
bracket at /usr/local/apache/perl/swishdir/swish.cgi
     line 1693, at end of line
     syntax error at /usr/local/apache/perl/swishdir/swish.cgi line 1693,
at EOF

I get the "Internal Server Error" page as well when I try to run the script
using a browser, and get the same
error log messsages.
Received on Thu Jan 2 18:17:35 2003