Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Installing specific versions of CPAN modules

by tptass (Sexton)
on Aug 08, 2008 at 15:18 UTC ( #703142=note: print w/replies, xml ) Need Help??

in reply to Installing specific versions of CPAN modules

I do not always have the luxury of being able to connect to CPAN, sometimes firewalls, sometimes no direct outside connection and have found the best way is to create a perl script that does all the installation steps for each module manually.

You will have to build them individually each time across the different platforms or else you will have issues. And if you are truly a paranoid one, you should want to download the exact version and store it locally for installation. This will give you the ability to take care of any dependency issues you have and will allow you to install on any platform all you will have to do is run the script created that will do the run the following commands at minimum for each module:

my @modules = qw ( moduleDir1 moduleDir2); foreach my $module (@modules){ chdir("$module"); system("Perl Makefile.PL"); system("make"); system("make install"); chdir("../"); }

Replies are listed 'Best First'.
Re^2: Installing specific versions of CPAN modules
by waswas-fng (Curate) on Aug 08, 2008 at 17:02 UTC
    I would hope that you deal with errors on the 'make' and run tests too?


      That would be ideal, all I was hoping to portray was a code stub to could used to achieve what was trying to be done. Yes error checking and tests would be great.

      I am not and wasn't on a computer where I actually have access to my exact code that I used to install my modules, but I do both of them in there, and would recommend you do it to because it has saved me hours of debugging in the past.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://703142]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2023-03-28 14:34 GMT
Find Nodes?
    Voting Booth?
    Which type of climate do you prefer to live in?

    Results (67 votes). Check out past polls.