On Friday 14 February 2003 10:45, Tony Bowden wrote:
> On Tue, Feb 11, 2003 at 09:54:47AM -0200, Luis Campos de Carvalho wrote:
> >   The use of a third-party module raises a new problem: there is any way
> > to automate the installation of pre-requisite libraries on a system? I
> > wanna end up with a script that the operator just runs before publishing
> > the new scripts on the production system, and that is able to install all
> > libraries. I have a connection to the internet and think on something
> > like
> >           #!/usr/bin/perl -wT
> >           use strict;
> >           use CPAN;
> >           install qw/ Some::Module And::Another::One Time::Parse DateTime
> > /; __END__
>
> You could use Abigail's The::Net module:
>    http://perlmonks.thepen.com/92473.html
>
> use The::Net;
> use Some::Module;
> use And::Another::One;

ummm ... isnt this a solution to an already solved problem? surely just 
adding it to the PREREQ_PM hash in the Makefile.PL of your third party app 
will war you of the failures anyway .... failing that just run a script to 
test for them and then fix them with CPAN. Have a look at how RT (request 
tracker .. umm http://www.bestpractical.com/rt/) does it if you dont want to 
do the Makefile.PL thing .. they run a ./testdeps  and a ./fixdeps scripts 
that err test and fix the dependenices ...


-- 
Robin Szemeti

Reply via email to