in reply to Running perl on multiple platforms

I don't understand the question. Provided you write portable Perl, your program will run anywhere that Perl does. Do you have Perl binaries built for one specific architecture stored on an NFS partition shared across other architectures? If so, it doesn't work that way. Each operating system/hardware platform will need its own version of Perl. In general, you can't run a Perl executable compiled for HP-UX on Solaris. They're source compatible, not binary compatible.

Replies are listed 'Best First'.
Re: Re: Running perl on multiple platforms
by the pusher robot (Monk) on Nov 14, 2002 at 22:48 UTC
    I (currently) have perl binaries built for sgi shared across achitectures. I'm going to compile perl for HP and Linux as well; I'm just trying to determine the best way to go about doing that (all the different binaries in one directory, or entirely different directories for the different platforms). If I have them in separate directories, then I also have to have separate copies of all the modules, man pages, etc.; however, I don't know how much is platform-specific and how much isn't.
      Basically, anything that needs to be compiled will have to have its platform specific version. That definitely means the Perl executable itself.

      Most modules are straight Perl, however, and run on any platform that has a Perl executable, so you can keep them in a common directory. Some modules have parts of them written in C (usually for speed), that will need compiling. Those modules will need platform-specific versions.

      BTW, your idea to have the hash bang line in your scripts refer to a wrapper script that calls the actual platform dependent perl binary is neat, if you can pull it off in a portable way (the one script needs to run on all your platforms - it's an easy way to create a chicken and egg problem).

      CU
      Robartes-