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

[MacPerl] Runtime Builder



Greetings all.

My goal: To write a standalone program that uses Socket.pm.
My tools:  Macperl 5.004, RuntimeBuilder.dp
My problem:   The script works fine running under MacPerl, but saving as a
runtime yields an application that fails to run, claiming it can't find the
shared library "Socket".  The exact text of the error:

# Can't locate Socket.pm in @INC.
File 'Son of Gig Drive:MacPerl Ÿ:My scripts:PWSMonitor 2.1 Ÿ:PWSMonitor
2.1.run'; Line 5
# BEGIN failed--compilation aborted.
File 'Son of Gig Drive:MacPerl Ÿ:My scripts:PWSMonitor 2.1 Ÿ:PWSMonitor
2.1.run'; Line 5

The offending code:

#!perl -w
BEGIN {
    unshift (@INC,":shared libs:");
}
use Socket;
$/="\012";
$repeat = 1;
$linecount = 0;
$newlinecount = 0;
$olddata = 0;
(etc..)

Obviously, I've tried to use RuntimeBuilder to get this to work.  If I put
Socket.pm into the "shared libs" folder that RuntimeBuilder creates, it
finds it, but doesn't find some of the libs that Socket uses.

Any thoughts?



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