Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Replicate Perl environment

by gepebril69 (Beadle)
on Feb 09, 2013 at 15:40 UTC ( #1017969=perlquestion: print w/ replies, xml ) Need Help??
gepebril69 has asked for the wisdom of the Perl Monks concerning the following question:

Hi there

I've been developing a while in Perl (strawBerry 5.12.3.0) on Windows. Now my laptop is slowly dying and have to move everything. I thought by reinstalling the same Perl version and installing via CPAN I would get an identical environment, it seems not.

That is not a problem by it's self, but Win32::API doesn't seem to be compatible with Win32:SystemInfo, I filed a bug report: https://rt.cpan.org/Public/Bug/Display.html?id=83237, but live goes on. I ran into a blog: http://gugod.org/2010/09/migrate-to-new-perl-with-cpan-autobundle/ with explanation of autobundle :)

My question is do I have to use the same Strawberry Perl (binairy) version on my new machine or can I take/and should I take the latest install binairies?

Thx in advance

Comment on Replicate Perl environment
Re: Replicate Perl environment
by CountZero (Bishop) on Feb 09, 2013 at 18:18 UTC
    You can use the autobundle of your "old" Perl to install the modules on a "new" Perl. Everything will be freshly downloaded/compiled/installed as necessary.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

    My blog: Imperial Deltronics

      Thanks for the advice

      I've tried 5.12.3.0-64bit and 5.16.2.1-64bit. With both I succeeded to replicate the environment, although a few sub processes of the install process crashed. It didn't accomplish to install Win32:SystemInfo. It noted that it could only be done with force. When I performed that I got the same situation as bug 83237

      What I just found out is that the old version (environment) was 32 bit instead of 64.....

        Installed 5.16.2.1-32bit version of Strawberry Perl and no problems with Win32::SystemInfo so my conclusion was right, there is something incompatible with 64 bits version of Perl and Win32:SystemInfo

        Will update bugreport #83237

Re: Replicate Perl environment
by bulk88 (Priest) on Feb 14, 2013 at 03:46 UTC
    Win32:SystemInfo simply isnt 64 bit compatible due to a bug (see RT ticket you linked to). You can't switch to a 64 bit perl, but you can upgrade to any 32 bit strawberry you want and Win32:SystemInfo will work and reinstall correctly from CPAN shell, you just cant upgrade to a 64 bit strawberry perl. I assume you (gepebril69) are compuvision.sr on CPAN RT.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1017969]
Approved by McDarren
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (11)
As of 2014-09-17 12:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (74 votes), past polls