True story - unfortunately, I need a way of overriding where Config.pm (and the perl binary itself) think they are located. The only solution I could find to this was to just install perl into my VOB path, then adding -Dotherlibdirs to point to the perl5/lib and perl5/lib/site_perl directories in /usr/local. Downside is that the @INC path contains directories that will never exist on a target system, but that's minor for me...

Of course I would prefer a cleaner alternative, and investigated stream editing the perl binary itself to remove a prefix string from all portions of the PERLLIB encoded in there. I can do this by hand, but it involves either space padding the beginning or end of the path elements with the same number of spaces as prefix characters removed. This has some strange consequences when modules attempt to use the @INC path, however. The most hardcore of efforts would involve updating the ELF header to account for the missing characters, but let's just say I'm not that motivated :).

Rgds,
C.


In reply to Re: Re: Building Perl in a Non-standard environment by comand
in thread Building Perl in a Non-standard environment by comand

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.