Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I have a peculiar problem I have not been able to figure out. I've installed the latest version of Perl (5.40) as a portable instance. The installation is on a shared NFS drive, so that a number of servers have access to it as well. It works as expected on the server where it was originally installed, but when try to run it from the other servers sharing the drive, I get a coredump error. I've tried installing and configuring the Perl instance in a variety of ways with no success. The exact wording of the error is "Illegal instruction(coredump)". I have included the config setting " -Duserelocatableinc", but still no luck.

Do you have any ideas as to what may be causing this issue?

Replies are listed 'Best First'.
Re: Portable Perl Install
by soonix (Chancellor) on Sep 07, 2024 at 12:18 UTC

    I have a similiar setup, where a bunch of servers ($^O is MSWin32) share a portable Strawberry with no major problems (and the minor ones are usually avoidable). Your mention of NFS seems to hint towards Unix (or Linux), perhaps you find some hint in the platform-specific Perl notes.

    As noted by the previous answers, there may be architectural considerations, or your "install" lodged some odds and ends in a place other than the shared drive.
Re: Portable Perl Install
by LanX (Saint) on Sep 07, 2024 at 01:32 UTC
    > Illegal instruction(coredump)

    Sounds like the binaries include commands which are not supported by the CPU.

    • Are your servers really compatible?
    • Did you try compiling Perl on one of the servers which fail?
    • If yes, are the resulting binaries identical?

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    see Wikisyntax for the Monastery

Re: Portable Perl Install
by eyepopslikeamosquito (Archbishop) on Sep 07, 2024 at 03:55 UTC

    I've installed the latest version of Perl (5.40) as a portable instance

    If you describe in detail, step-by-step, exactly how you did that, you will get better answers (an example of that approach can be found here in the "Example: build perl v5.38 securely from source on Ubuntu" section). What operating system/s are you using?

    👁️🍾👍🦟
Re: Portable Perl Install- part system administration
by parv (Parson) on Sep 07, 2024 at 20:47 UTC

    Check that same versions of needed software are installed wherever the software-over-NFS would be used that were used to build the software (perl & modules) in question.

    Run some incantation of ldd /path/perly/binary-file (on the NFS server) to find the dynamically linked libraries, in order to update the lacking hosts that would run software-over-NFS. Use your OS package manager to list the installed, missing, version-mismatched software.

    I sense that "portable" is so of different definitions, degrees of portable-ness.