Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??

G'day elef,

"... they may require some other software or installing a different version of perl instead of using the preinstalled version."

Firstly, don't modify the Mac OS X System Perl in any way. Apple installs its own version of Perl for its own use. Any changes you make can interfere with how this works; any updates to the Mac can interfere with whatever you've done.

I started using a Mac a couple of years ago and asked "Are there any major Perl issues with Mac OS X Lion?". That may be a little dated now and you could be working on a different version; however, I believe the basic information is still sound. I chose the perlbrew option: it's worked without problems with many versions of Perl. See App::perlbrew for installation and perlbrew for command details.

"The big question is whether the same thing can be done on OS X."

I'm using Perl v5.18.1 and have Tk v804.031 installed (the latest versions in both cases). I just installed PAR::Packer v1.015 without incident.

I wrote this short test script (pm_test_pp_tk.pl) and tested it successfully:

#!/usr/bin/env perl use strict; use warnings; use Tk; my $mw = MainWindow->new; my $frame = $mw->Frame->pack; $frame->Label(-text => 'Hello, world!')->pack; $frame->Button(-text => 'Quit', -command => sub { exit })->pack; MainLoop;

I then used pp:

$ pp -o pm_test_pp_tk.exe pm_test_pp_tk.pl

I successfully tested pm_test_pp_tk.exe.

You may already be aware that there's a substantial difference in the sizes of those files:

$ ls -l pm_test_pp_tk.* -rwxr-xr-x 1 ken staff 6893413 22 Nov 12:13 pm_test_pp_tk.exe -rwxr-xr-x 1 ken staff 238 22 Nov 12:10 pm_test_pp_tk.pl

I leave testing with DBI, and any other modules you might need, as an exercise for your good self.

-- Ken


In reply to Re: Perl/Tk and PAR::Packer on OS X by kcott
in thread Perl/Tk and PAR::Packer on OS X by elef

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others chanting in the Monastery: (9)
    As of 2014-11-28 20:42 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      My preferred Perl binaries come from:














      Results (200 votes), past polls