Hi, I've recently started to do some perl development, mostly scripts to automate some tasks on servers, as servers don't have access to Internet and some scripts use a handful of CPAN modules I started to deploy them as compiled binaries using pp from PAR::Packer.

I was working on Debian wheezy without problem, but I just changed to jessie, problem is that now everything I compiled on my machine won't run on servers because they are linked to glibc 2.16 and servers (redhat 5 and centos 6 boxes) have glibc 2.14.

I did read the warning from PAR to not use bleeding edge OS, but I think I didn't understand what they meant until now... Anyways, is there a way to compile perl code using pp or other similar tool but linking to lower version of system's glibc. Right now I am running a virtual machine with older debian and compile everything there but it is kinda slow.

P.S.: Maybe my approach is all wrong, so suggestions on what else would be a good idea to run perl scripts on servers without all the hassle of installing cpan modules (no internet access from servers) and their dependencies are welcome...

Thanks!

UPDATE: Thanks for your replies, I probably will try to use CPAN with local install in the near future. In the mean while tried to compile another version of GLIBC but I failed miserably, I could found a workaround using debootstrap to install squeeze and then chroot to it, and compile from the chroot, maybe is not ideal but is faster than running a full virtual machine. Regards!!!


In reply to PAR::Packer link to lower glibc version by hep

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.