jeanluca has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks
I'm writing some software which uses CPAN modules like XML::Simple, Math::Complex, etc.
I've used h2xs to create the package directory structure!
Thats all very nice and it works great.
However, if someone else installs my package he will find out that he cannot use it because he misses quite some CPAN modules. Maybe he also doesn't have internet to install them afterwards.
So, the question is can I somehow create my package such that it includes all the dependent modules ?

Thanks a lot
Luca
  • Comment on distributing software with dependencies to other modules

Replies are listed 'Best First'.
Re: distributing software with dependencies to other modules
by davorg (Chancellor) on Jun 16, 2006 at 09:46 UTC

    Take a look at PAR - in particular, the pp utility.

    --
    <http://dave.org.uk>

    "The first rule of Perl club is you do not talk about Perl club."
    -- Chip Salzenberg

Re: distributing software with dependencies to other modules
by Zaxo (Archbishop) on Jun 16, 2006 at 09:01 UTC

    The best you can do is set up PREREQ_PM in the Makefile.PL. See also PREREQ_PRINT and PREREQ_FATAL, all in ExtUtils::MakeMaker. You can't be expected to provide for a box that's not connected to a source of the distributions unless you are willing to distribute all the prereqs yourself, all in one package.

    After Compline,
    Zaxo