Math::GMP and Net::SSH::Perl
|
|
Thread rating:  |
Michael Barto - 05 Aug 2006 22:50 GMT I am a novice at this. What am I missing? I downloaded the Math::GMP ran a config, make, make test and make install.
./configure make make check <= VERY IMPORTANT!!
make install
everything worked fine. The library was installed in /usr/local/lib
In my load directory, I have a "GMP.pm" file in a development directory where I downloaded this module before I did the make(s)/install.
When I try again installed this CPAN module which has this dependency with
perl -MCPAN -e 'install Net::SSH::Perl' I get ----------------------------- Looks good Warning: prerequisite Math::GMP 1.04 not found. Writing Makefile for Net::SSH::Perl ---- Unsatisfied dependencies detected during [D/DB/DBROBINS/Net-SSH-Perl-1.30.tar.gz] ----- Math::GMP Shall I follow them and prepend them to the queue of modules we are processing right now? [yes] .... .... .... .... DIED. FAILED tests 1-19 Failed 19/19 tests, 0.00% okay t/03-packet......Can't locate Math/GMP.pm in @INC .....etc.....
------------------------------------------
Should I move the "GMP.pm" to say /Library/Perl/5.8.6/darwin-thread-multi-2level/Math so that the computation can see it, use libtool (how does that work?) or use an environmental variable? What is the correct answer to the question after I have compiled the Math::GMP (yes or no)? Since it is there, I think it should be no. But it does not see it. Before I hack it to see it, I would like some advice.
By the way Celeste Suliin Burris, you solved my first part of the problem in compiling GMP.pm. But who do we report these errors to fix CPAN without hacking around?
 Signature ------------------------------------------------------------------------ *Michael Barto* Software Architect
LogiQwest Circle LogiQwest Inc. 16458 Bolsa Chica Street, # 15 Huntington Beach, CA 92649 http://www.logiqwest.com/
mbarto@logiqwest.com <mailto:mbarto@logiqwest.com> 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.
Paul McCann - 05 Aug 2006 23:06 GMT 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 - 05 Aug 2006 23:43 GMT 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?
> Hi Michael, > [quoted text clipped - 14 lines] > Cheers, > Paul
 Signature ------------------------------------------------------------------------ *Michael Barto* Software Architect
LogiQwest Circle LogiQwest Inc. 16458 Bolsa Chica Street, # 15 Huntington Beach, CA 92649 http://www.logiqwest.com/
mbarto@logiqwest.com <mailto:mbarto@logiqwest.com> 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.
Michael Barto - 05 Aug 2006 23:51 GMT Also, I scan the output and "/usr/local/lib" is not even in the search path error ---------------------------
Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/01-compile.....ok
t/02-buffer......Can't locate Math/GMP.pm in @INC (@INC contains: /private/var/root/.cpan/build/Net-SSH-Perl-1.30/blib/lib /private/var/root/.cpan/build/Net-SSH-Perl-1.30/blib/arch /System/Library/Perl/5.8.6/darwin-thread-multi-2level /System/Library/Perl/5.8.6/darwin-thread-multi-2level /System/Library/Perl/5.8.6 /Library/Perl/5.8.6/darwin-thread-multi-2level /Library/Perl/5.8.6/darwin-thread-multi-2level /Library/Perl/5.8.6 /Library/Perl/5.8.6/darwin-thread-multi-2level /Library/Perl/5.8.6 /Library/Perl /Network/Library/Perl/5.8.6/darwin-thread-multi-2level /Network/Library/Perl/5.8.6 /Network/Library/Perl /System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.6 /Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1 . /System/Library/Perl/5.8.6/darwin-thread-multi-2level /System/Library/Perl/5.8.6 /Library/Perl/5.8.6/darwin-thread-multi-2level /Library/Perl/5.8.6 /Library/Perl /Network/Library/Perl/5.8.6/darwin-thread-multi-2level /Network/Library/Perl/5.8.6 /Network/Library/Perl /System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.6 /Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1 .) at t/02-buffer.t line 9. BEGIN failed--compilation aborted at t/02-buffer.t line 9.
--------------------------
> I make this modification, but still get the same error. > [quoted text clipped - 38 lines] >> Cheers, >> Paul
 Signature ------------------------------------------------------------------------ *Michael Barto* Software Architect
LogiQwest Circle LogiQwest Inc. 16458 Bolsa Chica Street, # 15 Huntington Beach, CA 92649 http://www.logiqwest.com/
mbarto@logiqwest.com <mailto:mbarto@logiqwest.com> 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.
emoy@apple.com - 06 Aug 2006 02:29 GMT Try:
'LIBS' => ['-L/usr/local/lib', '-lgmp'], # e.g., '-lm'
------------------------------------------------------------------------ -- Edward Moy Apple
(This message is from me as a reader of this list, and not a statement from Apple.)
> I make this modification, but still get the same error. > [quoted text clipped - 39 lines] >> Cheers, >> Paul Doug McNutt - 06 Aug 2006 03:36 GMT At 18:29 -0700 8/5/06, emoy@apple.com quoted:
>>The issue is that the Math/GMP.pm is located in my development directory : >> >>/Users/Mbarto/Development/Perl/GMP.pm setenv PERL5LIB /Users/Mbarto/Development/Perl
PERL5LIB=/Users/Mbarto/Development/Perl export PERL5LIB
Either way perl will add the directory to @inc before it starts compiling.
 Signature
--> In Christianity, man can have only one wife. This is known as monotony. <--
Boysenberry Payne - 05 Aug 2006 23:07 GMT This has been a bugger for me too. I'm using OS X 10.4.7 and get the following when I try to make test on Math-Pari-2.010706.
cd libPARI && make LIBPERL_A="libperl.a" LINKTYPE="dynamic" OPTIMIZE="-O1" PREFIX="/usr/local" PASTHRU_DEFINE="" PASTHRU_INC="" make[1]: Nothing to be done for `all'. PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00_Pari............dubious Test returned status 0 (wstat 10, 0xa) t/55_analyz..........dubious Test returned status 0 (wstat 10, 0xa) t/55_ellglobalred....dubious Test returned status 0 (wstat 10, 0xa) t/55_elliptic........dubious Test returned status 0 (wstat 10, 0xa) t/55_galois..........dubious Test returned status 0 (wstat 10, 0xa) t/55_graph...........dubious Test returned status 0 (wstat 10, 0xa) t/55_intnum..........dubious Test returned status 0 (wstat 10, 0xa) t/55_linear..........dubious Test returned status 0 (wstat 10, 0xa) t/55_nfields.........dubious Test returned status 0 (wstat 10, 0xa) t/55_number..........dubious Test returned status 0 (wstat 10, 0xa) t/55_objets..........dubious Test returned status 0 (wstat 10, 0xa) t/55_ploth...........dubious Test returned status 0 (wstat 10, 0xa) t/55_polyser.........dubious Test returned status 0 (wstat 10, 0xa) t/55_program.........dubious Test returned status 0 (wstat 10, 0xa) t/55_qfbsolve........dubious Test returned status 0 (wstat 10, 0xa) t/55_rfrac...........dubious Test returned status 0 (wstat 10, 0xa) t/55_round4..........dubious Test returned status 0 (wstat 10, 0xa) t/55_stark...........dubious Test returned status 0 (wstat 10, 0xa) t/55_sumiter.........dubious Test returned status 0 (wstat 10, 0xa) t/55_trans...........dubious Test returned status 0 (wstat 10, 0xa) t/PlotRect...........dubious Test returned status 0 (wstat 10, 0xa) t/zz_leak............dubious Test returned status 0 (wstat 10, 0xa) FAILED--22 test scripts could be run, alas--no output ever seen make: *** [test_dynamic] Error 255
Anyone know what's wrong? I've built and rebuilt both GMP and Pari and after several hours of compiling I'm still not able to install Net::SSH::Perl because of Math::Pari. I don't remember it being so hard on Panther...
Thanks, Boysenberry
boysenberrys.com | habitatlife.com | selfgnosis.com
> I am a novice at this. What am I missing? I downloaded the > Math::GMP ran a config, make, make test and make install. [quoted text clipped - 46 lines] > problem in compiling GMP.pm. But who do we report these errors to > fix CPAN without hacking around?
|
|
|