I am new to Perl and I am using ActivePerl. I am getting the following error:
Can't locate XML/LibXML.pm in @INC...
I have tried everything but cannot find the steps to install the "correct" module for XML::LibXML.
Here is exactly what is going on. I am running a script from a command prompt:
c:\temp>perl myscript.pl
The first few lines of myscript.pl:
#!/usr/bin/perl
use Archive::Zip qw( :ERROR_CODES :CONSTANTS );
use HTTP::Date;
use XML::Parser;
use LWP::UserAgent;
use XML::LibXML;
use Archive::Extract;
use Encode;
use LWP::Simple;
require HTTP::Request;
...
Then I get this error:
c:\temp>perl myscript.pl Can't locate XML/LibXML.pm in @INC (@INC contains: C:/Perl/site/lib C:/Perl/lib .) at myscript.pl line 7. BEGIN failed--compilation aborted at myscript.pl line 7
You should be able to install it with the ActivePerl Perl Package Manager. There should have been a start menu shortcut created when you installed ActivePerl, start the GUI and search for xml-libxml and libxml-perl.
--edit
Here's a post on adding an alternative repository to PPM and installing XML-LibXML
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