kingsaint has asked for the wisdom of the Perl Monks concerning the following question:
I need to use XML::LibXML in my project to handle a complex xml structure. I installed the corresponding perl module "perl-XML-LibXML-1.70-5.el6.src.rpm " as I'm using a system with CentOS 6(Kernel version-2.6.32-358.11.1.el6.centos.plus.x86_64). The above module installed with the following warnings:
1:perl-XML-LibXML warning: user mockbuild does not exist - usin +g root warning: group mockbuild does not exist - using root warning: user mockbuild does not exist - using root warning: group mockbuild does not exist - using root ########################################### [100%]
Then I tried to write a simple perl script to test whether it's working or not. Following is my test code:
test_2.pl -----------#!/usr/bin/perl use XML::LibXML; $parser = XML::LibXML->new(); $doc = $parser->parse_file('TreeList_dup.xml'); print $doc->toString;
But here is the error message I got:
Can't locate XML/LibXML.pm in @INC (@INC contains: /usr/local/lib64/p +erl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/p +erl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at test_2.pl li +ne 3. BEGIN failed--compilation aborted at test_2.pl line 3.
Can anyone help me to understand the error message and tell me how to recover from it?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can't locate XML/LibXML.pm in @INC
by tobyink (Canon) on Sep 23, 2013 at 06:06 UTC | |
by kingsaint (Novice) on Sep 23, 2013 at 06:42 UTC | |
by Anonymous Monk on Sep 23, 2013 at 06:48 UTC | |
by kingsaint (Novice) on Sep 23, 2013 at 07:41 UTC | |
by marto (Cardinal) on Sep 23, 2013 at 08:12 UTC | |
by Anonymous Monk on Sep 23, 2013 at 07:43 UTC | |
by daxim (Curate) on Sep 23, 2013 at 08:20 UTC | |
by kingsaint (Novice) on Sep 23, 2013 at 10:22 UTC | |
by Anonymous Monk on Sep 23, 2013 at 11:44 UTC |