Perl:V 5.8.8:无法在 CentOS5/RHEL5 上找到 auto/XML/LibXSLT/new.al [英] Perl: V 5.8.8 : Can't locate auto/XML/LibXSLT/new.al on CentOS5/RHEL5

查看:40
本文介绍了Perl:V 5.8.8:无法在 CentOS5/RHEL5 上找到 auto/XML/LibXSLT/new.al的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到找不到 auto/XML/LibXSLT/new.al我的 CentOS5 机器上安装了 Perl 5.8.8 时出错

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

这个问题与 libxml2 和 perl 模块 XML::LibXML, XML::LibXSLT 有关.对于 1.70 中的两个版本.

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

这似乎是 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;

任何帮助将不胜感激.

推荐答案

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

I think your XML::LibXSLT installation is not healthy. Try below. It worked for me:

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

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

And it worked for me on ubuntu as well. Here is the command:

# aptitude install libxml-libxslt-perl

这篇关于Perl:V 5.8.8:无法在 CentOS5/RHEL5 上找到 auto/XML/LibXSLT/new.al的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆