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

ε祈祈猫儿з 提交于 2019-12-02 14:52:41

问题


Environment: CentOS 5.
Application: Perl 5.8.8

Apache error saying

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

It requires following modules:

XML::LibXSLT

and

XML::LibXML

Both require v 1.70, I have installed both.

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

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 ?


回答1:


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

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


来源:https://stackoverflow.com/questions/20283898/error-in-perl-code-cant-locate-loadable-object-for-module-xmllibxslt

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!