Hi,

We have several Centos servers working with a custom compiled Perl, mod_perl, php etc. I am trying to recreate a local running dev version on Ubuntu (and basically any Linux machine).

Currently all the working code points to /usr/bin/perl, but the custom install script puts it in /opt/perl/bin and then creats a symlink to /usr/bin/perl (not sure this is a good idea, but its there currently).

The problem I'm then experiencing when trying to replicate, is I get errors like Can't locate Debconf/Log.pm in @INC; (@INC contains /opt/lib/site_perl/5.14.2/i686-linux /opt/lib/site_perl/5.14.2/ /opt/perl/lib/site_perl/5.14.2/ /opt/perl/lib/site_perl/5.14.2/i686-linux /opt/perl/lib/site_perl/5.14.2/) so I can't do things like apt-get upgrade without that error

I suspect its because the custom perl install has overwritten the system perl which would be looking elsewhere (I can see this file in /usr/share/perl5/Debconf for example).

Is this likely the problem (or have I misunderstood), and if so is there a solution like letting apt use the right libs, or compile perl to try /usr/share/perl5 if a module isn't found? (I suspect the better solution long term would be have all the custom scripts point to /opt/bin/perl and leave /usr/bin/perl in tact, but is there an interim solution?)

Any help greatly appreciated.

In reply to Perl build and ubuntu problem... by Gib

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.