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

4.7k views Asked by At
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

There are 1 answers

1
Dave Cross On

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