I'm writing a script that does XML processing. The use
is as follows:
use XML::LibXML;
But it doesn't compile:
Can't locate XML/LibXML.pm in @INC
Can anyone tell me which package do I need to install (running ubuntu). libxml2
doesn't do the trick, nor does any of the libxml-*-perl
packages.
Or, if possible, is there any better way for simple XML processing?
On Debian, it's named libxml-libxml-perl
. (Generally speaking, Debian packages of Perl distributions are named "lib".lc($perl_dist_name)."-perl"
.) I suspect it's the same on Ubuntu, being based on Debian.
libxml2
is the underlying C++ library used by XML::LibXML, not XML::LibXML itself.
There is a command named apt-file.
sudo apt-get install apt-file
apt-file update
apt-file search LibXML.pm
The package you required is libxml-libxml-perl
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With