Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: ERROR in XML::LibXML installation

by SilasTheMonk (Chaplain)
on Jul 06, 2010 at 08:43 UTC ( [id://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

Replies are listed 'Best First'.
Re^4: ERROR in XML::LibXML installation
by ikegami (Patriarch) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://848167]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-18 23:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found