Dom.pm

Posted by swapnajit_chakraborti@yahoo.com on 2014-08-15 03:03
Forums: PPM | OS: Windows 7

I have installed ActivePerl 5.16.3. I have also done a install XML::DOM in cpan shell as follows:
cpan> install XML::DOM
Still when I use XML::DOM in a module, I get the following error:
C:\Users\Dell\Downloads\ROUGE-1.5.5 (1)\RELEASE-1.5.5>ROUGE-1.5.5.pl
Can't locate XML/DOM.pm in @INC (@INC contains: C:/Perl64/site/lib C:/Perl64/lib
.) at C:\Users\Dell\Downloads\ROUGE-1.5.5 (1)\RELEASE-1.5.5\ROUGE-1.5.5.pl line
173.
BEGIN failed--compilation aborted at C:\Users\Dell\Downloads\ROUGE-1.5.5 (1)\REL
EASE-1.5.5\ROUGE-1.5.5.pl line 173.

But if I download the DOM package from cpan.org and update my PERL5LIB variable to point
to that DOM.pm, the error goes away.

My question is : Isn't install step enough?

I am new to all these, hence any clarification would be greatly appreciated.

Thanks,
Swapnajit

grahams
ActiveState Staff
Wed, 2014-10-15 15:11

On newer versions of Windows, a standard userID may not have the correct permissions to update a folder under C:/Perl64.