1

I am getting Can't locate auto/XML/LibXSLT/new.al error on my CentOS5 machine installed Perl 5.8.8

This issue is related with libxml2 and perl modules XML::LibXML, XML::LibXSLT. For both version in 1.70.

Upon settling both modules, further I am getting error for

Can't locate auto/XML/LibXSLT/new.al

which seems to be a autoload function of LibXSLT, But surprisingly I am not finding any file as new.al.

Here is the code snippet through which I am getting this error

use XML::LibXML;
use XML::LibXSLT;
my $parser = XML::LibXML->new;
my $xslt = XML::LibXSLT->new;

Any Help would be appreciated.

4

1 回答 1

0

我认为您的XML::LibXSLT安装不健康。下面试试。它对我有用:

# yum -y install perl-XML-LibXSLT
# perl -e 'use XML::LibXSLT'

它在 ubuntu 上也对我有用。这是命令:

# aptitude install libxml-libxslt-perl
于 2013-11-28T07:08:26.170 回答