I'm confused. Either you mean something with "relocatable" that's different from what I mean, or I'm not understanding your configuration.

Your Linux configuration uses absolute directories for its @INC. This means that you can launch perl from any directory and it will find its libraries. But this also means that you cannot move perl or its directories to any other place. So, in my opinion, the Linux perl is not relocatable.

Your Solaris configuration uses relative directories for its @INC. This means that you can only launch perl from a directory where ../lib points to the Perl libraries. This also means that you can move perl around wherever you want to, as long as you invoke it from a directory in the right relative position. In this case, the Solaris perl is somewhat relocatable.

I think Unixish operating systems have a problem with determining the directory where an executable lives in and hence it's not really supported for a program to find out the directory it is living in to determine the place of library directories in relation to that path.


In reply to Re: Relocatable Perl 5.10.0 on Solaris by Corion
in thread Relocatable Perl 5.10.0 on Solaris by Anonymous Monk

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.