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

Re^3: ERROR in XML::LibXML installation

by SilasTheMonk (Chaplain)
on Jul 06, 2010 at 08:43 UTC ( #848167=note: print w/ replies, xml ) Need Help??


in reply to Re^2: ERROR in XML::LibXML installation
in thread ERROR in XML::LibXML installation

> sadly CPAN has no way of specifying such dependencies

What you can do is reflect the C library with a Perl distribution (e.g. Alien-wxWidgets). During installation, the distro checks if the necessary C library is installed. If not, the distro either fails to install itself or it installs the C library.

Thanks. I will remember that when I write a perl module that depends on a C library. However that is not really the issue. XML::LibXML does implement such checks in as much as the install fails if the library. The problem is that CPAN does not (and could not be expected to) be able to reason: "Ah! libxml is missing and I am about to install XML::LibXML. I'd better install libxml first." So in conclusion I would say that the less production critical machine is, the less one should be using CPAN on it and the more one should be using the packaging system.


Comment on Re^3: ERROR in XML::LibXML installation
Re^4: ERROR in XML::LibXML installation
by ikegami (Pope) on Jul 06, 2010 at 16:39 UTC

    The problem is that CPAN does not (and could not be expected to) be able to reason: "Ah! libxml is missing and I am about to install XML::LibXML. I'd better install libxml first."

    What you can do is reflect the C library with a Perl distribution (e.g. Alien-wxWidgets). During installation, the distro checks if the necessary C library is installed. If not, the distro either fails to install itself or it installs the C library.

    XML::LibXML -> depends on Alien::LibXML (i.e. libxml2) Alien::LibXML -> Installs libxml2 as part of its installation

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2014-04-21 00:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (489 votes), past polls