I make this modification, but still get the same error.

t/03-packet......Can't locate Math/GMP.pm in @INC (@INC ..........

--------------------------------------
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.

WriteMakefile(
    'NAME'      => 'Math::GMP',
    'VERSION_FROM' => 'lib/Math/GMP.pm', # finds $VERSION
#    'LIBS'     => ['-lgmp'],   # e.g., '-lm'
    'LIBS'      => ['-L/usr/local/lib -lgmp'],   # e.g., '-lm'
    'DEFINE'    => '',     # e.g., '-DHAVE_SOMETHING'
);
--------------------------------------

The issue is that the Math/GMP.pm is located in my development directory :

/Users/Mbarto/Development/Perl/GMP.pm

Should I change it to that,  instead?

Paul McCann wrote:
Hi Michael,

I think the problem here is that Math::GMP doesn't look in /usr/local/ lib to find the libgmp* libraries, so you need to give it a helping  hand.

Just modifying the Makefile.PL file so that instead of

'LIBS'      => ['-lgmp'],   # e.g., '-lm'

you have

'LIBS'      => ['-L/usr/local/lib -lgmp'],   # e.g., '-lm'

should do the trick.

Cheers,
Paul


--

Michael Barto
Software Architect

LogiQwest Circle
LogiQwest Inc.
16458 Bolsa Chica Street, # 15
Huntington Beach, CA  92649
http://www.logiqwest.com/

    [EMAIL PROTECTED]
Tel:  714 377 3705
Fax: 714 840 3937
Cell: 714 883 1949

'tis a gift to be simple
This e-mail may contain LogiQwest proprietary information and should be treated as confidential.

Reply via email to