On 2005-12-12, Michael Peters <[EMAIL PROTECTED]> wrote:
>
> Is it really possible to be able to create a truly platform independent
> distribution when some of the Perl modules contain XS/C code or are wrappers
> around other C libraries?
>
> From the PAR docs:
>
>   Q: On what platforms can I run PAR? On what platforms will the resulting
>   executable run?
>
>   Win32 (with VC++ or MinGW), FreeBSD, NetBSD, Linux, MacOSX, Cygwin, AIX,
>   Solaris, HP-UX, Tru64.
>
>   The resulting executable will run on any platforms that supports the binary
>   format of the generating platform.
>
> Does this mean par's generated on one architecture will not run on another? 
> This
> is what I would expect. 

This is where there are limitations to PAR. You are quite right about XS
code not being cross platform. PAR does have a "multi-arch" mode which
includes a way to include platform dependent code for multiple
platforms, much like Apple has binaries that run on PPC and Intel.

However, there is no magic solution to generating platform independent
binaries here. To add in the code for target platform, you are expected
to run PAR /there/ as well. 

In the example, it just mentions "src.pl". 

This part of the documentation is not clear. Is there is really a simple
PAR command to run on the target server, or would you essentially have
to copy the whole application and its dependencies over the new server 
to create the PAR file? (Which sort of defeats the purpose...)

> Can FreeBSD run Linux binaries?

Generally, Yes. I've done it. But in this case, No, because FreeBSD
couldn't find the "libc.so.6" file in needed. It existed on the system
under "/usr/compat/linux", but wasn't found there. 

    Mark


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to