Hi Monk,
Thanks for your reply.
Is there any command to run the par achieve created on to a host machine.
My requirement is to create a stand alone executable which can run on any Linux machine which doesn’t have any Perl module installed.
Thanks
Madhi
| [reply] |
Linux machines without a working Perl installation are rare, especially if you leave out embedded machines. So, most of the times, just delivering your script should work. If you need special modules to be installed, use the CPAN module to install them with an install script. Look at how bugzilla is installed: There is a checksetup.pl script that tests that all required modules are installed.
On the other hand, Linux runs on a lot of different CPUs (with and without MMU, e.g. x86, x86_64, ARM, MIPS, 68000, powerpc, sparc, sparc64, ...), and with several very different C libraries (glibc2, libc5, uclibc, dietlibc, klibc, ...). So, if you want one executable for all Linux machines, you need to link everything statically (lots of trouble ahead this way) to avoid problems with the different C libraries, and you have to stuff binaries for several platforms into one executable. (I don't know if ELF really supports this.) And even then, this won't work on all Linux machines. While most Linux machines now use ELF as the standard executable format, there are still machines using the a.out format.
Alexander
--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
| [reply] |
| [reply] |