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

Hi, for some odd reasons I've been writing a small text based game in Perl with XML. I need to deploy this game to a variety of different people and environments. At this point I'm mostly trying to package my program and modules into an executable (I'm doing my work on a Win32 machine). I've succeeded in getting an .exe working fine, but I need to be able to run it on a mac. I know the perl environment is included on mac, but I need to set it up in a way that anyone could run it; i.e. a double-click-able file. At this point I'm at a loss on how to do this. To do so on the PC I've been using PAR::Packer / pp , but it can only create binaries for the environment it's run on as far as I can tell. Is there any other module I can use that can create cross-platform binaries? I've found a program called 'platypus' that will create a script to run it, but the program is native to mac. Is there any way I can do this on a windows machine? Thank for your help.
  • Comment on Compiling(Packaging) Perl for Mac on PC

Replies are listed 'Best First'.
Re: Compiling(Packaging) Perl for Mac on PC
by jethro (Monsignor) on Apr 02, 2009 at 21:04 UTC
    There is PAR (http://par.perl.org) that sounds like what you are after
      Thank you for the response. I've been using PAR to generate my .exe files and have it working fine. However unless I'm mistaken it can only generate binaries on the platform that you run it on, so I can't generate a file for macs while using a pc. I don't have access to a mac that I can work on...
        make friends with someone on the mac perl list :)