Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: loading libxml2 as a prerequisite

by jandrew (Chaplain)
on Nov 19, 2014 at 02:30 UTC ( [id://1107693]=note: print w/replies, xml ) Need Help??


in reply to Re: loading libxml2 as a prerequisite
in thread loading libxml2 as a prerequisite

As mentioned in the "Steps attempted to resolve the problem" neither XML::LibXML or Alien::LibXML doesn't 'just install' in Linux without the libxml2 packages pre-installed. I already had a dependency on XML::LibXML in my Makefile.PL and when I CPAN pre-installed Alien::LibXML with CPAN I still couldn't get XML::LibXML to install via CPAN. I looked at your link but it seems to be instructions on how to build a Debian package. I would prefer to stick with CPAN.

Update: I am using perlbrew on an AWS Linux server for my Linux text. Any chance that might cause problems?

Update2: Alien::LibXML does 'just install' it just doesn't provide any libraries that XML::LibXML can find. It looks like the Docs I was looking for are Alien::Base::Authoring

  • Comment on Re^2: loading libxml2 as a prerequisite

Replies are listed 'Best First'.
Re^3: loading libxml2 as a prerequisite
by Anonymous Monk on Nov 19, 2014 at 03:07 UTC

    As mentioned in the "Steps attempted to resolve the problem" XML::LibXML won't 'just install' in Linux or Unix without the libxml2 packages pre-installed.

    This was clear, but why are you concerned ?

    :) You don't release XML::LibXML or Alien::LibXML , so its not really any of your business :)

    As mentioned in the "Steps attempted to resolve the problem" Alien::LibXML won't 'just install' in Linux or Unix without the libxml2 packages pre-installed.

    I kind of doubt that :)

    If Alien::LibXML doesn't install libxml2, report a bug, but I think it does install libxml2, just look at https://metacpan.org/source/TOBYINK/Alien-LibXML-0.003/Build.PL

    Also, like the docs say, XML::LibXML currently makes no use of Alien::LibXML, so report a bug in XML::LibXML?

    Yeah, looks like even if you install Alien::LibXML XML::LibXML won't know anything about it ... standard way you as a user can let it know is through Makefile.PL args INC=/LIB=

    Most modules on CPAN do not have a corresponding Alien:: library, and its been that way for most of the history of CPAN ... that a user has to  apt-get install.. before he can cpan SomeModule is kind of a FAQ

    So, as maintainer of Spreadsheet::XLSX::Reader::LibXML, there is nothing for you to do, maybe improve your docs to explain the appropriate apt-get steps ...

    You could at an utils/installlibxml2.pl to help you out your users, but this stuff doesn't belong in your Makefile.PL, each cpan author takes care of his own distribution

    I almost forgot, you could always fork XML::LibXML to use Alien::LibXML and release that on cpan, and submit a feature request ... see upload a fork (unauthorized version),

     

    Hopefully that is clear :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (6)
As of 2024-04-24 11:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found