Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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

by tobyink (Abbot)
on Sep 23, 2013 at 06:06 UTC ( #1055231=note: print w/ replies, xml ) Need Help??


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

You installed a .src.rpm file. This is the source code for the package; it is not what you want. The compiled module will be in an i586.rpm or x86_64.rpm or similar.

use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name


Comment on Re: Can't locate XML/LibXML.pm in @INC
Re^2: Can't locate XML/LibXML.pm in @INC
by kingsaint (Novice) on Sep 23, 2013 at 06:42 UTC

    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?

      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.

      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.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2014-10-22 00:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (112 votes), past polls