在Perl code错误:无法定位模块XML装载的对象:: libxslt上 [英] Error in Perl code: Can't locate loadable object for module XML::LibXSLT

查看:413
本文介绍了在Perl code错误:无法定位模块XML装载的对象:: libxslt上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Environment: CentOS 5.
Application: Perl 5.8.8

Apache的错误说法。

Apache error saying

Error in Perl code: Can't locate loadable object for module XML::LibXSLT

这需要以下模块:

It requires following modules:

XML::LibXSLT

XML::LibXML

这都需要v 1.70,我已经都安装。

Both require v 1.70, I have installed both.

我的问题是,它是在说着找到可装载对象模块

My question is, It is saying "cant locate loadable object for module"

什么模块,它究竟想要?另外据需要Perl模块......它们都安装在那里。

What module it is exactly looking for ? Further as far as required perl modules... They are all installed and up there.

有没有像它到底是什么寻找任何调试方法?

Is there any debugging method like what exactly it is looking for ?

推荐答案

一个装载的对象是一个C库,以便在Perl模块需要做的工作。要修复它,你可能需要运行以下命令。

A "loadable object" is a C library that the Perl module needs in order to do its work. To fix it, you probably need to run the following commands.

$ sudo yum install libxml2
$ sudo yum install libxslt

我很惊讶,这些库丢失。您是如何安装的模块?如果你使用百胜然后,他们将被安装为依赖关系,如果你使用 CPAN (或 cpanm ),那么Perl不会已经能够建立模块,而这些库安装。

I'm surprised that these libraries are missing. How did you install the modules? If you used yum then they would have been installed as dependencies and if you used cpan (or cpanm) then Perl wouldn't have been able to build the modules without these libraries installed.

更新:我刚刚看到您要安装此另一个答复手动模块。有百胜任何理由,你不使用安装它们?

Update: I've just seen in another reply that you are installing this modules manually. Is there any reason why you're not using yum to install them?

$ sudo yum install perl-XML-LibXML
$ sudo yum install perl-XML-LibXSLT

这篇关于在Perl code错误:无法定位模块XML装载的对象:: libxslt上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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