[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Problem w/making runtime version of script



Brenda Cannon skrev/wrote:
>hi,
>
>I have the following snippet of code at the beginning of one of my
>scripts:
>
>#!/usr/local/bin/perl -w
>#use strict
>
>use constant FALSE => 0;
>use constant TRUE => 1;
>
>use Getopt::Long;
>use Config;
>
>require "shellwords.pl";
>require "GUSI.ph";
>
>
>The problem is that when I actually tried making a runtime version of
>this script it saved it with no errors/warnings, but then when I
>actually try to run it on the other machine I get the error that it
>cannot locate constant.pm in @INC.  Can anyone tell me what is going on
>here?

The runtime is roughly a cpoy of macperl with your scxript included, 
so either you put a lib folder with the necessary modules in a folder 
named lib in the same folder as the runtime, of you put the necessary 
modules in the resource fork of your script. If your script only uses 
plain .pm I'd vote for the latter 'because it's neater'...

There's a nice droplet callse Runtimebuilder that converts plain text 
scripts into runtimes with the necessary modules in the resources 
fork and/or in a 'shared libs' folder (.xs)

Christian                                icq:19272112
_____________________________________________________
http://www.solvare.se/individer/christian/
soca? soca! http://www.solvare.se/SOCA/

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org