just a follow up on this. Adding a "use
Math::BigInt::GMP;" statement
before "use Math::BigInt lib => 'GMP';" in my
.pm file
made things work without having to do any special perlapp
compile options.
Jan Dubois wrote:
> On Mon, 29 Jan 2007 16:45:59 -0500, listmail
<listmail triad.rr.com>
> wrote:
>
>
>> I'm unable to get a perlapp executable to find and
use the OS compiled
>> GMP libraries. Running the
>> same code while uncompiled will be able find and
use GMP. The original
>> need for GMP came up while
>> implementing Net::SSH::Perl and dealing with it
being very slow during
>> authentication. I found that
>> when Math::BigInt was using the pure perl routines
in Math::BigInt::Calc
>> that ssh became very slow.
>> When it uses GMP, authentication runs in seconds.
I've tried a few
>> --add, --lib, --runlib commands
>> during the perlapp compile with no luck. Is there
an ENV var I can set
>> so that the perlapp
>> executable will be able to use GMP? Or perhaps
something else to try
>> during the compile? The GMP
>> lib dir is /usr/local/lib.
>>
>> Test script to demonstate the problem of not seeing
GMP libs:
>>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~
>> #! /opt/ActivePerl-5.8/bin/perl
>> use strict;
>> use warnings;
>> use Math::BigInt lib => 'GMP';
>> use Net::SSH::Perl;
>>
>> print "testn";
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>
>>
>> Running the compiled version (perlapp test.pl --exe
--force):
>>
>
> Try building it with "--add
Math::BigInt::GMP":
>
> perlapp --force --add Math::BigInt::GMP test.pl
>
> and let us know if that is working for you.
>
> Cheers,
> -Jan
>
>
>
>> ./test
>> Math::BigInt: couldn't load specified math lib(s),
fallback to
>> Math::BigInt::Calc at test.pl line 4
>> test
>>
>> Running the uncompiled version:
>> perl test.pl
>> test
>> _______________________________________________
>> PDK mailing list
>> PDK listserv.ActiveState.com
>> To unsubscribe: http:/
/listserv.ActiveState.com/mailman/mysubs
>>
>
>
_______________________________________________
PDK mailing list
PDK listserv.ActiveState.com
To unsubscribe: http:/
/listserv.ActiveState.com/mailman/mysubs
|