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

Hello, As I am nearing the end of my program on protein analysis etc, I am starting to realize that I have no knowledge on how to create an installer that will enable me to distribute my program freely. Because of the certain modules I used such as Perl GD which has like tons of other dependencies, it has been a real hell for me to find and install those one by one. And I am guessing that if I just distribute the program as an executable, people will need to perform the same installations along with activeperl. My question is, is it possible to automate these perl library installations by writing a installer? And if so, how can I learn to write installers? Thanks..
  • Comment on Perl Executables and External Libraries :/

Replies are listed 'Best First'.
Re: Perl Executables and External Libraries :/
by friedo (Prior) on Nov 15, 2007 at 19:51 UTC

    One option (which works well on ActivePerl) is to use PAR which can create a single executable containing your program and all its dependencies.

    If you distribute your program as a distribution on CPAN, you can include a list of dependencies which will be recursively installed by the CPAN program when somebody installs your distribution. See the instructions for Module::Build which makes the process pretty easy in most cases.