Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Perl packager for MAC OS

by McD (Chaplain)
on May 31, 2009 at 01:31 UTC ( [id://767094]=note: print w/replies, xml ) Need Help??


in reply to Perl packager for MAC OS

To be more specific, although Perl is installed by default in most MAC OS platforms, I want to create a standalone application that incorporates all required modules and can be run -without opening a terminal- simply by double-clicking on an icon.

I just did precisely that here, using the excellent Platypus for OS X.

Consult the docs that come with it - I found it easy to bundle my dependent modules into the Application, and added a use lib directive along with FindBin to find them at runtime.

Works great!

Replies are listed 'Best First'.
Re^2: Perl packager for MAC OS
by athanasia (Pilgrim) on May 31, 2009 at 11:54 UTC
    Hi,

    Thanks for your reply.
    The software looks very interesting, however, having a quick look in the docs and reading the output options I have the impression that this software can not support Perl/Tk scripts but only simple scripts that perform a task and maybe print something as an output. I read that only 4 ways are available to direct the output of the program i.e. none, progress bar, text and web. Please do correct me if I am wrong.

    Cheers,
    Athanasia
      I have the impression that this software can not support Perl/Tk scripts but only simple scripts that perform a task and maybe print something as an output.

      No, it works with Tk scripts as well. I just downloaded, built, and installed Tk.pm in a local directory, then used Platypus to create a Tk "Hello World" application. (Mind you, it's a 10MB "Hello World," but that's the drawback to carrying a beefy library like Tk around in your app.)

      I read that only 4 ways are available to direct the output of the program i.e. none, progress bar, text and web.

      You'd select "output" as none in Platypus - they're really just talking about where to direct STDOUT/STDERR. The helpfile available from within the Platypus application gives more details.

      One downside is that X11 isn't installed on OS X by default, the user needs to install it from their OS installation disks. Depending on your target audience, this may or may not be an issue, I suppose. It would probably take some clever fiddling about to have the app detect that X was missing and issue an appropriate message to the user.

      Let us know how you fare!
        Thanks a lot for your kind help. Actually, your last reply made me realise a bigger problem than the ones I had. I hadn't realised X11 does not come pre-installed in MAC OS Xs. After doing some search, I saw there is nothing you can do to avoid X11, unless you use Tkx. So, I will either have to go with Tkx (that does not need X11 to run) instead of Tk or use Netbeans for my gui part and create apps for the non-gui Perl stuff I am using.

        Really appreciate your help,
        Athanasia

Log In?
Username:
Password:

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

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

    No recent polls found