Running Perl Scripts on servers that don't have the modules
Posted
by
envinyater
on Stack Overflow
See other posts from Stack Overflow
or by envinyater
Published on 2012-12-10T16:45:12Z
Indexed on
2012/12/10
17:03 UTC
Read the original article
Hit count: 391
I need to run a perl script to gather system information that will be deployed and executed on different unix servers.
Right now I am writing it and testing it, and I'm receiving this error.
Can't locate XML/DOM.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at test.pl line 7. BEGIN failed--compilation aborted at test.pl line 7.
So I am simply using XML::DOM which should be part of Perl but it isn't for this version on this particular server which is 5.10.1.
Anyways, is there a way I can create and design my script and package modules into it while keeping the .pl extension, which is the requirement for this script?
© Stack Overflow or respective owner