[Templates] Couldn't load Template::Stash::XS 2.08:

Andrew McFarland aamcf@aamcf.co.uk
Wed, 04 Sep 2002 13:53:18 +0100


I'm having a problem with the following script, which works on my 
development box (Debian) but not on my live webserver (Red Hat):

#!/usr/bin/perl -w
use Template;
my $aam= Template->new({INCLUDE_PATH => '/home/andrew/webget'}) || die;

When run, the following output is produced:

[andrew@caspian andrew]$ web/aamcf.co.uk/public_html/tidy/tidy.cgi
Couldn't load Template::Stash::XS 2.08:

Can't locate loadable object for module Template::Stash::XS in @INC (@INC 
contains: /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 
/usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 
/usr/lib/perl5/site_perl .) at 
/usr/lib/perl5/5.6.0/i386-linux/DynaLoader.pm line 27

BEGIN failed--compilation aborted at 
/usr/lib/perl5/site_perl/5.6.0/Template/Stash/XS.pm line 27.
Compilation failed in require at 
/usr/lib/perl5/site_perl/5.6.0/Template/Config.pm line 76.
         ...propagated at web/aamcf.co.uk/public_html/tidy/tidy.cgi line 4.
[andrew@caspian andrew]$

What is going on, and how do I fix it?

Andrew