The perl equivalent of ./configure && make && make install is (usually) perl Makefile.PL && make && make install; that's what the cpan client usually does after downloading and extracting module distributions.
I second Sawyer's recommendation and suggest you look at some Makefile.PL files in a bunch of CPAN modules to see how it works - something simple to start with (Gaal Yahas' App::CSV, or Mojolicious and Dancer) and something trickier like Template-toolkit, which will give you ideas for how to customize the installation (there's no configure in the perl toolchain, and it installs the modules relative to where perl is installed). - Dotan (haven't done this myself, IMBTOOMA) On 06/20/2011 10:53 PM, Assaf Gordon wrote: > Hello, > > I have a perl script with couple of perl modules, and I would like to package > them and deploy them as easily as possible on multiple unix servers - what's > the recommended way to do that ? (or what is the equivalent "configure&& > make&& make install" of Perl) ? > > These aren't public scripts, so CPAN is not an option. > > There are couple of pre-requisites CPAN modules, so ideally they should be > detected and automatically installed, or at least have errors reported in a > friendly way (e.g. "Module XXX:YYY not found, please install from cpan"). > > Also, the final script should go by default to "/usr/local/bin", but I need > some way to change that (just like with "./configure --prefix=XXXX"). > > Where should I start ? > > Thanks, > -Assaf > _______________________________________________ > Perl mailing list > [email protected] > http://mail.perl.org.il/mailman/listinfo/perl -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. _______________________________________________ Perl mailing list [email protected] http://mail.perl.org.il/mailman/listinfo/perl
