On 11/20/2007 02:23 PM, Parker, Peter A CONTRACTOR WRAIR-Wash DC wrote:
> [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.
>
you need a:
use Template;
at or near the top of search.cgi most likely.
> ((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
hm. Perl is look for the the .bs and .so files that I assume would be in
/var/www/swish-e/lib/auto/SWISH/API/
Can you verify where you installed SWISH::API? Something like:
perldoc -l SWISH::API
might tell you.
--
Peter Karman . peter(at)not-real.peknet.com . http://peknet.com/
_______________________________________________
Users mailing list
Users@lists.swish-e.org
http://lists.swish-e.org/listinfo/users
Received on Tue Nov 20 15:49:57 2007