Skip to main content.
home | support | download

Back to List Archive

Re: Can't locate

From: Bill Moseley <moseley(at)>
Date: Tue Feb 11 2003 - 21:44:11 GMT
On Tue, 11 Feb 2003, Jody Cleveland wrote:

> When I run:
> ./swish.cgi from a command line, I get:
> ./swish.cgi Can't locate in @INC (@INC contains: modules

> /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0
> /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
> /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at
> ./swish.cgi line 738.

> > You can get it from these places if you install modules manually (which is
> > what I do - perl Makefile.PL && make && make test && make install)
> So, I did that, but I get the same error message when trying to run
> ./swish.cgi does not use Template-Toolkit. is a
module to generate output without the help of Template Toolkit or
HTML::Template. is part of the swish-e distribution.  It's normally
found in example/modules.  

At the top of swish.cgi you will see:

  use lib qw( modules );

so it's adding ./modules to the @INC array -- do you have a modules
directory where you have swish.cgi?  Or change that use lib line to point
to where is located.

If you want to use Template-Toolkit then you will need to modify the
config setting (or config file) for swish.cgi.

Bill Moseley
Received on Tue Feb 11 21:44:32 2003