Skip to main content.
home | support | download

Back to List Archive

Encountering Errors when installing Swish-e on Windows 2000 Environment

From: Ken-Yu Lin <kengyuli(at)not-real.ms21.hinet.net>
Date: Mon May 24 2004 - 08:17:32 GMT
Hi !

I set up Swish-e before successfully on an Unix machine but the Unix 
hard-drive got fried recently. So I have to start over with a regular 
PC...with my very little knowledge on how to do it under the Windows 
environment. I saw Peter's notes on how to install swish-e, apache, and 
mod_perl for Windows 2000 (Message Posted on May 12, 2004) and was very 
excited to follow this step-by-step 'cooking recipe'.

So I did give it a shot ......but got some errors messages when trying 
to access the Swish-e cgi interface with IE.

I think I am missing something when and hope to get some help here.
Any clue will be a great help. Thanks folks!!!

Ken-Yu.



*Here's the error log from Apache.*
-------------------------------------

[Mon May 24 01:36:03 2004] [warn] Syntax error at 
C:/Apache2/conf/httpd.conf:978 "use" not allowed in expression at 
C:/SWISH-e/share/doc/swish-e/example/swish.cgi line 53, at end of 
line\nsyntax error at C:/SWISH-e/share/doc/swish-e/example/swish.cgi 
line 53, near "use vars "\nGlobal symbol "$speedy_config" requires 
explicit package name at C:/SWISH-e/share/doc/swish-e/example/swish.cgi 
line 58.\nGlobal symbol "$speedy_config" requires explicit package name 
at C:/SWISH-e/share/doc/swish-e/example/swish.cgi line 59.\nGlobal 
symbol "$speedy_config" requires explicit package name at 
C:/SWISH-e/share/doc/swish-e/example/swish.cgi line 62.\nGlobal symbol 
"$speedy_config" requires explicit package name at 
C:/SWISH-e/share/doc/swish-e/example/swish.cgi line 62.\nGlobal symbol 
"$speedy_config" requires explicit package name at 
C:/SWISH-e/share/doc/swish-e/example/swish.cgi line 65.\nBEGIN not safe 
after errors--compilation aborted at 
C:/SWISH-e/share/doc/swish-e/example/swish.cgi line 967.\nCompilation 
failed in require at C:/Apache2/conf/httpd.conf line 980.\n
[Mon May 24 01:36:05 2004] [notice] Parent: Created child process 2704
String found where operator expected at 
C:/SWISH-e/share/doc/swish-e/example/swish.cgi line 53, near "use vars 
'$speedy_config'"
    (Do you need to predeclare use?)
[Mon May 24 01:36:05 2004] [warn] Syntax error at 
C:/Apache2/conf/httpd.conf:978 "use" not allowed in expression at 
C:/SWISH-e/share/doc/swish-e/example/swish.cgi line 53, at end of 
line\nsyntax error at C:/SWISH-e/share/doc/swish-e/example/swish.cgi 
line 53, near "use vars "\nGlobal symbol "$speedy_config" requires 
explicit package name at C:/SWISH-e/share/doc/swish-e/example/swish.cgi 
line 58.\nGlobal symbol "$speedy_config" requires explicit package name 
at C:/SWISH-e/share/doc/swish-e/example/swish.cgi line 59.\nGlobal 
symbol "$speedy_config" requires explicit package name at 
C:/SWISH-e/share/doc/swish-e/example/swish.cgi line 62.\nGlobal symbol 
"$speedy_config" requires explicit package name at 
C:/SWISH-e/share/doc/swish-e/example/swish.cgi line 62.\nGlobal symbol 
"$speedy_config" requires explicit package name at 
C:/SWISH-e/share/doc/swish-e/example/swish.cgi line 65.\nBEGIN not safe 
after errors--compilation aborted at 
C:/SWISH-e/share/doc/swish-e/example/swish.cgi line 967.\nCompilation 
failed in require at C:/Apache2/conf/httpd.conf line 980.\n
[Mon May 24 01:36:07 2004] [warn] Syntax error at 
C:/Apache2/conf/httpd.conf:978 "use" not allowed in expression at 
C:/SWISH-e/share/doc/swish-e/example/swish.cgi line 53, at end of 
line\nsyntax error at C:/SWISH-e/share/doc/swish-e/example/swish.cgi 
line 53, near "use vars "\nGlobal symbol "$speedy_config" requires 
explicit package name at C:/SWISH-e/share/doc/swish-e/example/swish.cgi 
line 58.\nGlobal symbol "$speedy_config" requires explicit package name 
at C:/SWISH-e/share/doc/swish-e/example/swish.cgi line 59.\nGlobal 
symbol "$speedy_config" requires explicit package name at 
C:/SWISH-e/share/doc/swish-e/example/swish.cgi line 62.\nGlobal symbol 
"$speedy_config" requires explicit package name at 
C:/SWISH-e/share/doc/swish-e/example/swish.cgi line 62.\nGlobal symbol 
"$speedy_config" requires explicit package name at 
C:/SWISH-e/share/doc/swish-e/example/swish.cgi line 65.\nBEGIN not safe 
after errors--compilation aborted at 
C:/SWISH-e/share/doc/swish-e/example/swish.cgi line 967.\nCompilation 
failed in require at C:/Apache2/conf/httpd.conf line 980.\n
[Mon May 24 01:36:09 2004] [notice] Child 2704: Child process is running
[Mon May 24 01:36:09 2004] [notice] Child 2704: Acquired the start mutex.
[Mon May 24 01:36:09 2004] [notice] Child 2704: Starting 250 worker threads.



*Here's part of the http.conf ...as suggested by Peter's notes.
I think the errors started from here. *
---------------------------------------------------------------
LoadFile "C:/Perl/bin/perl58.dll"
LoadModule perl_module modules/mod_perl.so
PerlRequire "C:/Apache2/conf/extra.pl"

<Perl>
    use lib "C:/Apache2/cgi-bin";
    use lib "C:/SWISH-E/lib/swish-e/perl";
    require "C:/SWISH-e/share/doc/swish-e/example/swish.cgi";
</Perl>

Alias /cgi-bin/ "C:/Apache2/cgi-bin/"
<Location /cgi-bin/>
    PerlSetVar Swish_Conf_File 
"C:/SWISH-e/share/doc/swish-e/example/.searchcgi.conf"
    allow from all
    SetHandler perl-script
    PerlHandler SwishSearch
</Location>

*
Here's Line 53 from swish.cgi*
---------------------------------------------------------------
use vars '$speedy_config';  # Global for caching in persistent 
environment such as SpeedyCGI



*********************************************************************
Due to deletion of content types excluded from this list by policy,
this multipart message was reduced to a single part, and from there
to a plain text message.
*********************************************************************
Received on Mon May 24 01:17:33 2004