Skip to main content.
home | support | download

Back to List Archive

Re: Can't locate TemplateDefault.pm

From: Bill Moseley <moseley(at)not-real.hank.org>
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 TemplateDefault.pm 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)
>    http://search.cpan.org/author/ABW/Template-Toolkit-2.08/
> 
> So, I did that, but I get the same error message when trying to run
> ./swish.cgi

TemplateDefault.pm does not use Template-Toolkit.  TemplateDefault.pm is a
module to generate output without the help of Template Toolkit or
HTML::Template.

TemplateDefault.pm 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 TemplateDefault.pm 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 moseley@hank.org
Received on Tue Feb 11 21:44:32 2003