Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: migrate cpan from AIX to Red Hat

by sundialsvc4 (Abbot)
on Jul 30, 2013 at 16:33 UTC ( #1047066=note: print w/replies, xml ) Need Help??


in reply to Re: migrate cpan from AIX to Red Hat
in thread migrate cpan from AIX to Red Hat

Note that “tarballs” can be expected to work across machines only if the surrounding environment ... installed libraries and library-versions ... are known to be identical across the machines.   Many CPAN modules install themselves by compiling C programs, checking installed library versions, and other magickal things.   Then, they run a slew of self-tests to make certain everything works.   Everything should be copacetic if, say, the machines are known to be “corporate clones” of one another.

What most-certainly won’t work is a migration from AIX to (Red Hat or otherwise) Linux.   Apples and oranges.   The binary modules upon which many Perl libraries actually depend will not load or run correctly.   You must repeat the install on one Red Hat machine ... letting CPAN discover and compile and link and otherwise do whatever it takes to accommodate Linux.   Then, perhaps, you can tarball-clone that.   When the dust finally settles, the Perl programs should then run more-or-less identically.

Replies are listed 'Best First'.
Re^3: migrate cpan from AIX to Red Hat
by jfroebe (Parson) on Jul 30, 2013 at 18:30 UTC

    I thought that was obvious but you are correct that I should have explicitly stated that. :)

    Jason L. Froebe

    Blog, Tech Blog

Re^3: migrate cpan from AIX to Red Hat
by sazo (Novice) on Aug 06, 2013 at 07:55 UTC
    Thanks! Can I use the perllocal.mod on machine1 to clone the installed modules on machine2? If yes, how, are there any scripts that parse the content and make the installation?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1047066]
help
Chatterbox?
[stevieb]: choroba my GPS home device is done, at least prototype v1 is. I'm just making sure all of my code does what it says now
[stevieb]: I test/prototype code on my Pi, then I migrate it over to Arduino when it's ready (if that's a better platform for what I'm doing). The whole RPi stuff was for learning at first, then it snowballed. I'm just trying to get my in-house CI...
[stevieb]: ...done, which obviously requires a specific hardware setup.
[stevieb]: I don't write tests for the lower-level distributions (ie. ICs, sensors etc) within those distributions, I have all tests in a master distribution which encompasess all of the sub-modules

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2017-06-25 22:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (572 votes). Check out past polls.