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

Re: [MacPerl] "runtime version" problem



Max,

There are actually three solutions.  Most modules are housed in the "lib" folder
inside the MacPerl folder.  You can:

1)  Copy the respective module file(s) or folder(s) into the same directory as
the runtime--in the case below, copy the whole "mac" directory (or create a
"mac" directory and copy only the "files" file);

2)  Put at the beginning of your script where you would normally place require
or use statements, "use lib HD:Apps:MacPerl:lib:" where the example path shown
is an absolute path to the MacPerl lib directory;

3)  Use the perl droplet RuintimeBuilder.dp that was built by Michael Ziege
<ziege@ito.umnw.ethz.ch>.  I haven't used it much, and I don't remember where to
get it, but I am sure you can pass a friendly note and find that out.  The
purpose of the droplet is to embed modules into the runtime so you don't have to
be concerned about their location or distribution.

Hope this helps.

-Alex

----------
>From: "Max Pinton" <max@maxgraphic.com>
>To: A K Suska <aksuska@insideflyer.com>
>Subject: Re: [MacPerl] "runtime version" problem
>Date: Wed, Feb 3, 1999, 5:54 PM
>

> Sorry for being a newbie, but how do I do that? Adding "use lib" to my
> script didn't improve things, and a find for "RuntimeBuilder" didn't come up
> with anything. Is it included in the MacPerl distribution?
>
> Thanks.
>
>> Max,
>>
>> Runtimes don't have the default lib paths.  You will need to specify them
> using
>> "use lib" or RuntimeBuilder.
>>
>> -K
>> ----------
>>>From: "Max Pinton" <max@maxgraphic.com>
>>>To: mac-perl@iis.ee.ethz.ch
>>>Subject: [MacPerl] "runtime version" problem
>>>Date: Wed, Feb 3, 1999, 1:37 PM
>>>
>>
>>> I'm trying to make a standalone app out of a script I wrote in MacPerl
>>> 5.2.0r4. It works fine within MacPerl, and as a droplet, but when I launch
>>> the "runtime version" I get:
>>>
>>> # Can't locate Mac/Files.pm in @INC.
>>> File 'boot:Desktop Folder:MaxFax'; Line 3
>>> # BEGIN failed--compilation aborted.
>>> File 'boot:Desktop Folder:MaxFax'; Line 3
>>>
>>> I am using "Mac::Files" for a couple things, which seems to be the
>>> problem. Any ideas?
>>>
>>> Thanks in advance,
>>>
>>> Max
>>>
>>> --
>>> Max Pinton, max@maxgraphic.com
>>> Maxgraphic Digital Portfolio, http://www.maxgraphic.com/
>>>
>>> ***** Want to unsubscribe from this list?
>>> ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch
>>>
>>
>> ***** Want to unsubscribe from this list?
>> ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch
>
>
> --
> Max Pinton, max@maxgraphic.com
> Maxgraphic Digital Portfolio, http://www.maxgraphic.com/

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch