Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

how to make exe for all operating systems

by veeruch (Sexton)
on Nov 16, 2006 at 15:28 UTC ( [id://584487]=perlquestion: print w/replies, xml ) Need Help??

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

This node falls below the community's threshold of quality. You may see it by logging in.
  • Comment on how to make exe for all operating systems

Replies are listed 'Best First'.
Re: how to make exe for all operating systems
by dorward (Curate) on Nov 16, 2006 at 15:46 UTC

    Meta: See "Question" vs "Doubt"

    Different operating systems have formats of executables, an executable built for one system won't work on another (incompatable) system.

    You might be able to get something useful by running the generated executable under something like WINE on Linux.

      Different operating systems have formats of executables, an executable built for one system won't work on another (incompatable) system.

      Well, let's say, it won't work without performing tricks. I have used heavily (in house) modified Pascal (!) compilers that generated binaries that ran on both SCO and VMS. It's dirty, it's tricky, but it worked. It can be done. But normally, you really, really don't want to.

Re: how to make exe for all operating systems
by Joost (Canon) on Nov 16, 2006 at 17:31 UTC
Re: how to make exe for all operating systems
by fenLisesi (Priest) on Nov 16, 2006 at 16:42 UTC
    But one of the best things about Perl is the portability. Would it be acceptable to you to distribute your application without generating a binary executable? If so, and especially if you use pure Perl modules, you have many other distribution options.
Re: how to make exe for all operating systems
by geekphilosopher (Friar) on Nov 16, 2006 at 18:09 UTC
    According to a friend of mine who works at ActiveState, the PDK does not (yet) support cross-compilation. If you make an executable on linux using the PDK for linux you will be able to run that on linux systems - we use that in production systems here, I believe.
Re: how to make exe for all operating systems
by smokemachine (Hermit) on Nov 16, 2006 at 18:22 UTC
Re: how to make exe for all operating systems
by monarch (Priest) on Nov 16, 2006 at 15:41 UTC
    If you want to run Win32 .exe files on linux then have a look at wine.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://584487]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-16 21:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found