Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Running Perl on any platform

by crenz (Priest)
on Apr 22, 2003 at 15:41 UTC ( [id://252295]=note: print w/replies, xml ) Need Help??


in reply to Distribute cross-platform perl application

For MacOS X, you could try the following approach:

  • Make an application directory (e.g. image2swf.app) and a subdirectory lib for all the libraries.
  • Install the necessary libraries (e.g. ImageMagick) inside that directory, using e.g.
    configure --prefix=/my/path/image2swf.app/lib make make install
  • Do the same for all modules:
    perl Makefile.PL PREFIX=/my/path/image2swf.app/lib make make install
  • Put your script in there (for exact location, see below)
  • Modify your script to use your library directory:
    use lib qw(lib)
  • Put all the other necessary files (resources, icon etc.)

I don't have an article handy that shows the structure of Mac OS X app-directories, but you might google for it or look at another app to see how it's done. The created app will look to the user as one file.

Update: I'm not recommending this for linux because distributing compiled versions of software (ImageMagick in that case) can be problematic on linux (library issues, different kinds of processor (x86, Sparc), etc.)

Log In?
Username:
Password:

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

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

    No recent polls found