Skip to main content.
home | support | download

Back to List Archive

Re: TemplateToolkit Does Not Work

From: Bill Moseley <moseley(at)not-real.hank.org>
Date: Thu Nov 10 2005 - 18:10:52 GMT
On Thu, Nov 10, 2005 at 10:04:17AM -0800, Michael Porcaro wrote:
> So I looked at my apache error_log and this is what I observed.
>  
> swish.cgi Can't locate Template.pm in @INC (@INC contains:
> /usr/local/lib/swish-e/perl /usr/lib/perl5/5.8.7/i686-linux
> /usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.7/i686-linux
> /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.0
> /usr/lib/perl5/site_perl .) at
> /usr/local/lib/swish-e/perl/SWISH/TemplateToolkit.pm line 9.
> BEGIN failed--compilation aborted at
> /usr/local/lib/swish-e/perl/SWISH/TemplateToolkit.pm line 9.
> Compilation failed in require at swish.cgi line 851.
>  
>  
> I am not sure what Template.pm is, but do I need to install something
> else on my server in order to get this to work?

Please read the manual again.

http://swish-e.org/docs/install.html

    --If you wish to use Template-Toolkit with swish.cgi to generate output, install:

    Template 


How much clearer does that need to be?

http://swish-e.org/docs/swish.cgi.html

swish.cgi -- Example Perl script for searching with the SWISH-E search engine.
Swish-e version 2.4.3
Table of Contents <<<<<<<<<<<<<<<<<<<

    * DESCRIPTION
    * REQUIREMENTS
    * INSTALLATION
    * CONFIGURATION
    * DEBUGGING
    * Frequently Asked Questions
          o How do I change the way the output looks?
          o How do I use a templating system with swish.cgi? 
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

http://swish-e.org/docs/swish.cgi.html#how_do_i_use_a_templating_system_with_swish_cgi_

    Templating systems use template files to generate the HTML, and
    make maintaining the look of a large (or small) site much easier.
    HTML::Template and Template-Toolkit are separate packages and can
    be downloaded from the CPAN. See http://search.cpan.org.



Bill Moseley
moseley@hank.org

Unsubscribe from or help with the swish-e list: 
   http://swish-e.org/Discussion/

Help with Swish-e:
   http://swish-e.org/current/docs
   swish-e@sunsite.berkeley.edu
Received on Thu Nov 10 10:10:55 2005