in reply to loading libxml2 as a prerequisite

If it were as simple as requiring Alien::LibXML I might have tried to muddle through but I think I'm out of my depth here. Pointers on where to start would be greatly appreciated!

Yes, it is that simple, depend on XML::LibXML in your module and Makefile.PL (or equivalent) and you're done

Yes, you could go ahead and also depend on Alien::LibXML in your Makefile.PL (or equivalent), since someone was kind enough to create Alien::LibXML ... but you shouldn't trouble yourself about it :)

Other than this there is nothing to do

Well, you could simply provide apt-get installable binary package which declares all the right dependencies ... Re: How to release a precompiled XS module? (apt-get repository) ... but thats not CPAN stuff :)

loaded is not uploaded or downloaded, its not that loaded, and ATM I'm not loaded either

Replies are listed 'Best First'.
Re^2: loading libxml2 as a prerequisite
by jandrew (Chaplain) on Nov 19, 2014 at 02:30 UTC

    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

      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 :)

Re^2: loading libxml2 as a prerequisite
by Anonymous Monk on Nov 19, 2014 at 02:27 UTC

    Yes, you could go ahead and also depend on Alien::LibXML in your Makefile.PL (or equivalent), since someone was kind enough to create Alien::LibXML ... but you shouldn't trouble yourself about it :)

    Yup, you could, but XML::LibXML itself doesn't , so I wouldn't bother :)