Skip to main content.
home | support | download

Back to List Archive

[swish-e] Problems setting up SWISH::API and search.cgi

From: Parker, Peter A CONTRACTOR WRAIR-Wash DC <Peter.Parker(at)not-real.AMEDD.ARMY.MIL>
Date: Tue Nov 20 2007 - 20:23:10 GMT
Greetings fellow Swish-e users,
I am trying to setup Swish-e to use the search.cgi script and the
SWISH::API perl module. I am running Swish-e 2.4.5 using Apache 2.0.52,
RedHat Enterprise Linux 4 and Perl version 5.8.5. I have also gone
through the steps documented to install the perl API module.

I went to the root folder that contained swish-e and in the perl
directory ran make for the API module. Initially I had a problem with
'make test', but I searched on the Archive site and applied the ldconfig
fix.

Then I was receiving an error about Template, so I installed the
Template Toolkit 2.19 package from CPAN.

Now I am getting yet another error, 2 actually. I don't understand why
the error still seems to be about a Template, since I did install the
template toolkit.

Below I have placed the errors that I am receiving from both the command
line head request and the error log entry that corresponds to a browser
request of the search.cgi page.

 ((Command line request and error))

[root@localhost ~]# /var/www/cgi-bin/search.cgi | head
Name "Template::ERROR" used only once: possible typo at
/var/www/cgi-bin/search.cgi line 279.
Can't locate object method "new" via package "Template" at
/var/www/cgi-bin/search.cgi line 278.

line 278 --     $instance->{template_object} ||= Template->new(
INCLUDE_PATH => $config->{INCLUDE_PATH} ) 
line 279 --        || die $Template::ERROR, "\n";
The above lines are inside the generate_view() subroutine.

 ((Error log message after browser request))

[Thu Nov 22 08:10:23 2007] [error] [client 192.168.240.1] Can't locate
loadable object for module SWISH::API in @INC (@INC contains:
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/APR
/var/www/swish-e/lib /usr/lib/perl5/site_perl/5.8.5/HTML
/usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5
/swish-e-2.4.5/perl/blib/lib /swish-e-2.4.5/perl
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.5 /var/www/swish-e/lib/swish-e/perl
/usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3
/usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4
/usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2
/usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl .) at /var/www/cgi-bin/search.cgi line 35
[Thu Nov 22 08:10:23 2007] [error] [client 192.168.240.1] Compilation
failed in require at /var/www/cgi-bin/search.cgi line 35.
[Thu Nov 22 08:10:23 2007] [error] [client 192.168.240.1] BEGIN
failed--compilation aborted at /var/www/cgi-bin/search.cgi line 35.
[Thu Nov 22 08:10:23 2007] [error] [client 192.168.240.1] Premature end
of script headers: search.cgi

line 35 -- use SWISH::API;       # for searching the index file

As always, any assistance that you can provide is greatly greatly
appreciated!

Peter
_______________________________________________
Users mailing list
Users@lists.swish-e.org
http://lists.swish-e.org/listinfo/users
Received on Tue Nov 20 15:25:31 2007