I have downloaded RuntimeBuilder and attempted to use it. Directions say to drag &
drop a PerlScript.pl textfile on it. I am trying the sample perl code that Chris sent
me (just changed the hard drive name):
-----------------------------------
#!perl -w
use File::Basename;
use File::Copy;
use Mac::MoreFiles;
use strict;
my($dest) = "Whitney:Desktop Folder:";
my($file) = @ARGV;
my($color) = MacPerl::Ask("What is your favorite color?");
FSpDTSetComment($file, "Color: $color");
copy($file, $dest . basename($file));
__END__
-----------------------------------
If I save the above file as runtime, and then drag a file to the program, I get this
error:
# Can't locate File/Basename.pm in @INC.
You told me this would happen. Next I dragged the file onto RuntimeBuilder.dp and got
these errors:
Checking for imported modules...
Saving "drop.pl" as Runtime in
"Whitney:Desktop Folder:C A P S T O N E D O C S:P E R L:drop f:drop.run"...
Saving imported modules in resource fork of drop.run...
Copied module Tie:Hash.pm into resource fork.
Copied module Carp.pm into resource fork.
Copied module Mac:MoreFiles.pm into resource fork.
Out of memory!
Out of memory!
Out of memory!
Out of memory!
I gave RunTimeBuilder.dp 32MB for memory. It was set at 64k. That didn't help. I gave
MacPerl 128MB ram (I was frustrated!). That didn't help.
Any ideas about what to do next?
Thanks,
Kathy
--- Chris Nandor wrote:
At 18:14 +0200 2001.04.25, Bart Lateur wrote:
>A problem is any modules your script depends on. In principle, you can
>add the modules themselves in the resource fork of the runtime version
>of the script. I believe someone once wrote, and made available, a
>script that does this for you. Can anybody else fill in the pointers?
RuntimeBuilder. I would just look on Google for it, but I know it is on
The MacPerl Pages somewhere.
--
Chris Nandor [EMAIL PROTECTED] http://pudge.net/
Open Source Development Network [EMAIL PROTECTED] http://osdn.com/
--- end of quote ---