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

Re^2: Move Perl modules to new CentOS VPS

by monx (Novice)
on Nov 08, 2013 at 22:42 UTC ( #1061785=note: print w/replies, xml ) Need Help??

in reply to Re: Move Perl modules to new CentOS VPS
in thread Move Perl modules to new CentOS VPS

Thanks to both marto and MLX, helpful stuff...

a) distribution's Perl installation should not really be messed around with. If needed just install an alternative version of Perl for use by my Perl apps.
b) Use CPAN's autobundle to "create" the installed module list. Then use perlbrew on the new server to re-install based on what's on the old server. Perhaps using perl -MCPAN -e 'install Bundle::Snapshot'

But... What about external libraries used by the various Perl modules such as GD with the libjpeg, libpng etc? Do these libraries have to be installed fresh on the new server? Is there a good way to at least get a list of such external dependencies?


Replies are listed 'Best First'.
Re^3: Move Perl modules to new CentOS VPS
by taint (Chaplain) on Nov 09, 2013 at 09:30 UTC

    Should be a no brainer. You have root. So just fire up what ever flavor of application management your flavor of Linux uses -- yum, druid, slac, apt, ... and take inventory. Is GD installed? Was the package the "development" version (you'll probably want that one) while I run *BSD's. As I recall, getting all the optional libraries often wanted on a Linux box required the development packages. Anyway. If you perform this step ahead of your localized Perl install/upgrade. You shouldn't run into any difficulties that aren't easily handled.



    #!/usr/bin/perl -Tw
    use Perl::Always or die;
    my $perl_version = (5.12.5);
    print $perl_version;

      FreeBSD is my personal OS ;-> (where headers & libraries are generally installed together).

      I ever so mildly get annoyed with prebuilt packages (installed via rpm|yum) on GNU/Linux whenever I have to install "x-devel" package for install of "x" package alone omits related header files. (So, does anybody know of the secret password that would install libraries and headers while installing "x" alone (short of a wrapper script)?)

Re^3: Move Perl modules to new CentOS VPS
by Anonymous Monk on Nov 09, 2013 at 11:26 UTC

    A subset of (library) dependencies can be found via ldd(1) ...

    # current-host # find /perl/root/directory -name '*.so*' -type f \ | xargs ldd
Re^3: Move Perl modules to new CentOS VPS
by gsiems (Deacon) on Nov 09, 2013 at 16:39 UTC
    W.R.T. external dependencies: Since your dependencies are probably on the devel packages, and this is an rpm based system, then rpm -qa | grep '\-devel' should give you a good starting point.
      Greetings, gsiems .

      While I have both rpm, and deb on this system (*BSD). I haven't ever had need to use but deb, and only once, a year ago.


      #!/usr/bin/perl -Tw
      use Perl::Always or die;
      my $perl_version = (5.12.5);
      print $perl_version;
        I see. I was thinking that you were moving from one CentOS system to another... my bad.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2021-05-07 12:55 GMT
Find Nodes?
    Voting Booth?
    Perl 7 will be out ...

    Results (91 votes). Check out past polls.