in reply to Re^2: Relocatable Perl 5.10.0 on Solaris
in thread Relocatable Perl 5.10.0 on Solaris

Ah hah - so maybe the issue is that the Solaris @INC does not contain .../ but ./../, at least to what the OP showed us. So either the Perl was configured wrong or the configure process went wrong somewhere. Maybe patching the resulting binary is the easiest way out, as the string only decreases in length which can easily be fixed by zero padding it at the end.

Replies are listed 'Best First'.
Re^4: Relocatable Perl 5.10.0 on Solaris
by Anonymous Monk on May 16, 2008 at 10:14 UTC
    Alas, no - I checked using a hex editor, and both binaries definitely contain .../../lib. So the problem appears to be a runtime one, not at configure/build.

    This is why I was hoping it was a library problem :(.

    Regards,
    CK.

      Maybe look at what $^X is on the Solaris machine - if it always lacks a path, likely the magic that turns ... into <c>/home/ck/myperl/bin/

      cannot use that value as the path.

        I see!

        I just checked $^X on both installs, and indeed, the Solaris binary returns just the executable name ("perl"), whereas on Linux it returns the full path to the executable.

        The previous perl versions on both boxes behave the same way respectively.

        Next question - is this normal? Or have I missed something in the Solaris build that does the $^X magic correctly?

        The inference given in the documentation is that the relocation should 'just work', so assuming I haven't screwed this install up - does it constitute a perl on solaris bug?

        Thanks for everyones help so far,
        CK.