None of the ideas that were provide have worked for install the CPAN libary 'Net::SSH::Perl" because of failures wtih
'Math::GMP'. This is a summary of what I have done base on input from this list. Since there are other also complaining, what magic is happening with those that get this install, what we doing wrong??

The idea I have so far were to assign the PERL5LIB environmental variable
and edit the Makefile.PL in the Math::GMP install.

I. I create a directory

    /Users/mbarto/Development/Perl

    and downloaded gmp-4.2.1  from http://www.swox.com/gmp
    Untargzip the file I placed in this directory creating
   
    /Users/mbarto/Development/Perl/gmp-4.2.1
   
II. I then perfomerd in this directory:

./configure build=powerpc-apple-darwin8.7.0
make
make check

make install


This create /usr/local/lib/Math/GMP.pm


III. I tried again

perl -MCPAN -e 'install Net::SSH::Perl'

with PERL5LIB=/usr/local/lib as an environmental variable.

Get these error;


Checking for optional modules

Checking if your kit is complete...
Looks good
Warning: prerequisite Math::GMP 1.04 not found.
Writing Makefile for Net::SSH::Perl

...
....
...
...


t/02-buffer......Can't locate loadable object for module GMP 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 /usr/local/lib /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
Compilation failed in require at t/02-buffer.t line 9.
BEGIN failed--compilation aborted at t/02-buffer.t line 9.
# Looks like your test died before it could output anything.
t/02-buffer......dubious                                                    
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-19
        Failed 19/19 tests, 0.00% okay
t/03-packet......Can't locate loadable object for module GMP 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 /usr/local/lib /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 /private/var/root/.cpan/build/Net-SSH-Perl-1.30/blib/lib/Net/SSH/Perl/Util/SSH1MP.pm line 7
Compilation failed in require at /private/var/root/.cpan/build/Net-SSH-Perl-1.30/blib/lib/Net/SSH/Perl/Util/SSH1MP.pm line 7.
BEGIN failed--compilation aborted at /private/var/root/.cpan/build/Net-SSH-Perl-1.30/blib/lib/Net/SSH/Perl/Util/SSH1MP.pm line 7.
Compilation failed in require at /private/var/root/.cpan/build/Net-SSH-Perl-1.30/blib/lib/Net/SSH/Perl/Util.pm line 56.
BEGIN failed--compilation aborted at /private/var/root/.cpan/build/Net-SSH-Perl-1.30/blib/lib/Net/SSH/Perl/Key/RSA1.pm line 6.
Compilation failed in require at /private/var/root/.cpan/build/Net-SSH-Perl-1.30/blib/lib/Net/SSH/Perl/SSH1.pm line 13.
BEGIN failed--compilation aborted at /private/var/root/.cpan/build/Net-SSH-Perl-1.30/blib/lib/Net/SSH/Perl/SSH1.pm line 13.
Compilation failed in require at /private/var/root/.cpan/build/Net-SSH-Perl-1.30/blib/lib/Net/SSH/Perl.pm line 54.
# Looks like your test died before it could output anything.
t/03-packet......dubious                                                    
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-10
        Failed 10/10 tests, 0.00% okay
t/04-config......ok                                                         
t/05-cipher......ok                                                         
t/06-circular....ok                                                         
Failed Test   Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/02-buffer.t  255 65280    19   38 200.00%  1-19
t/03-packet.t  255 65280    10   20 200.00%  1-10
Failed 2/6 test scripts, 66.67% okay. 29/116 subtests failed, 75.00% okay.
make: *** [test_dynamic] Error 2
  /usr/bin/make test -- NOT OK
Running make install
  make test had returned bad status, won't install without force


IV. Now I try to

perl -MCPAN -e 'install MATH::GMP'

Also fails

Modify the :

/var/root/.cpan/build/Math-GMP-2.04/Makefile.PL

--------------------------

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'
);

--------------------------

V. perform a make in this directory

pwbk2003:~/.cpan/build/Math-GMP-2.04 root# make
rm -f blib/arch/auto/Math/GMP/GMP.bundle
LD_RUN_PATH="" env MACOSX_DEPLOYMENT_TARGET=10.3 cc  -bundle -undefined dynamic_lookup -L/usr/local/lib GMP.o  -o blib/arch/auto/Math/GMP/GMP.bundle   -lgmp  
/usr/bin/ld: /usr/local/lib/libgmp.a(mode1o.o) has local relocation entries in non-writable section (__TEXT,__text)
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/Math/GMP/GMP.bundle] Error 1
pwbk2003:~/.cpan/build/Math-GMP-2.04 root#


What ever the solution to this is, it needs to be documented in a cookbook fashion that is repeatable. I am will to post a page on this, if someone can figure out a consistent process to make this happen. I have got a couple of answers, that they have got it working, but they do not remember how they did it. Swell!!

--

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