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

Hello there,

Please accept my apology if this has been covered somewhere; I did a brief search through CPAN, Google, Google groups, the Perl FAQ, and this site, but I can't really think of a good set of keywords that will yield appropriate results.

I've been working on a script that will need to be installed in several different places. I want to automate this process. Since I'm reasonably comfortable in Perl, and since Perl seems suited to the task, a Perl install script seems like a reasonable approach.

My installation process will involve:

My question is this: is there a good model or prototype install script that does all this, which I can modify/customize for my own use? Or is there a module/library designed for this task that will make all this easy? As I said, I'm not sure how best to even search for all this. Of course I could just code everything myself, but I'd prefer not to reinvent the wheel here.

Although the general Perl installation procedure seems start with "make", and then use a Perl "install" to copy files, I'd like to do everything with Perl. If this is a terrible idea, please let me know, but I've got most of the actual tasks listed and I think Perl will be fine for all of it. Also, I learned a version of "make" a number of years ago, and have no real desire to revisit or deepen my knowledge of it.

I'm a fan of the automated WordPress install process, and would love something like that to start with (WordPress is in PHP, and I'm not really interested in PHP).

(I would consider a Python script, in case any of you are multilingual in that particular way, but I'm way less familiar with Python - I just find the language attractive and have dabbled in it.)

  • Comment on seeking good prototype install script or module

Replies are listed 'Best First'.
Re: seeking good prototype install script or module
by philcrow (Priest) on Apr 09, 2007 at 20:01 UTC
    I think you can accomplish all of that except the GUI with Module::Build, it is a pure perl replacement for make maker. If you do have make, you can then inject your dist into your own mini-cpan and install with the CPAN shell.

    We do this and like it quite a bit. Module::Build allows us to ask questions even during CPAN shell installation, but we still provide reasonable defaults. It allows us to install perl modules, scripts, and ancillary files easily.

    Alternatively, some people sware by PAR, which can get around the absence of tools like make. I've never needed to try that myself, since the above scheme works in my linux only world.

    Phil

    A reply falls below the community's threshold of quality. You may see it by logging in.