Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Can't locate XML/LibXML.pm in @INC

by kingsaint (Novice)
on Sep 23, 2013 at 06:42 UTC ( [id://1055236]=note: print w/replies, xml ) Need Help??


in reply to Re: Can't locate XML/LibXML.pm in @INC
in thread Can't locate XML/LibXML.pm in @INC

Thanks for the reply.Well, I tried to install

perl-XML-LibXML-1.70-5.el6.x86_64.rpm. It threw the following error message:
error: Failed dependencies: perl(XML::SAX::DocumentLocator) is needed by perl-XML-LibXML-1:1.7 +0-5.el6.x86_64

To resolve the dependency, I tried to install

perl-XML-SAX-0.96-7.el6.noarch.rpm.

It threw the following error message:

error: Failed dependencies: perl(XML::LibXML) is needed by perl-XML-SAX-0.96-7.el6.noarch

Why there exists a cross dependency between XML::LibXML and XML::SAX::DocumentLocator? How to resolve it?

Replies are listed 'Best First'.
Re^3: Can't locate XML/LibXML.pm in @INC
by Anonymous Monk on Sep 23, 2013 at 06:48 UTC

    Why there exists a cross dependency between XML::LibXML and XML::SAX::DocumentLocator?

    Because whomever created the RPMs you're using made it that way

    there is no such cross dependency on CPAN. XML::SAX doesn't require XML::LibXML, but XML::LibXML requires

    How to resolve it?

    Force installation (every package manager has the option), or use cpan or cpanm to install XML::LibXML

      Ya,you are right. Cross dependencies should not be there. But that is exactly what I'm getting. Anyway, force installation did not help much,it's still throwing the same error message. I do not have the option to use CPAN either.

        Ya,you are right. Cross dependencies should not be there. But that is exactly what I'm getting. Anyway, force installation did not help much,it's still throwing the same error message. I do not have the option to use CPAN either.

        Funny

Re^3: Can't locate XML/LibXML.pm in @INC
by daxim (Curate) on Sep 23, 2013 at 08:20 UTC
    How to resolve it?

    Install both at the same time.

    Take the time to learn the tools you are working with!

      The issue is resolved. Thanks a lot to everyone.

        How did you resolve it; what did you do?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1055236]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2024-04-25 02:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found