http://qs1969.pair.com?node_id=703142


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?


    -Waswas

      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.