Re: unable to install Math::GMP

2007-09-06 Thread Alex Robinson
I was on my way to install Net::SSH::Perl when an error with 
Math::GMP stopped me...



This prompted me to try and install GMP again (though I can't 
remember now why I wanted to install Net::SSH::Perl in the first 
place ;)



Following the suggestion here

  http://gmplib.org/list-archives/gmp-bugs/2006-March/000303.html




./configure --host=none-unknown-none  make  make check
make install


GMP installs just fine and dandy. (Well under Tiger on an Intel macBook anyway)

And Math::GMP then installs without a hitch or any need to edit Makefile.PL :)


Re: unable to install Math::GMP

2007-09-05 Thread Jeremiah Foster


On Sep 5, 2007, at 5:45 AM, Louis-Philippe wrote:


Hi,

I was on my way to install Net::SSH::Perl when an error with  
Math::GMP stopped me...

I then installed libgmp successfully, tried again... no luck.
then changed a couple of lines in Math::GMP Makefile.PL as written  
in this previous mailing :


http://www.nntp.perl.org/group/perl.macosx/2006/08/msg9995.html

no luck again...
when I compile I get this with the error:

env MACOSX_DEPLOYMENT_TARGET=10.3 cc  -L/opt/local/lib -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)


I think your error is here ^^ (the call to ld)


collect2: ld returned 1 exit status
make: *** [blib/arch/auto/Math/GMP/GMP.bundle] Error 1

any IDEA?



You may want to check the ld documentation to see if you can find  
that error message.


Google produces some interesting output if you search on the ld error  
string. I think this link might offer some help: http://prlmnks.org/ 
html/543267.html


It unfortunately looks non-trivial.


l-p


Jeremiah Foster
[EMAIL PROTECTED]
---
Key fingerprint = 9616 2AD3 3AE0 502C BD75  65ED BDC3 0D44 2F5A E672





Re: unable to install Math::GMP

2007-09-05 Thread Louis-Philippe
Thanks Jeremiah,

that worked for the Math::GMP install
in fact, I used this post:

http://gmplib.org/list-archives/gmp-bugs/2006-July/000516.html

to get it solved.

but now... guess what?

Net::SSH::Perl still stops its install at the same spot it did before!!!
:

t/02-buffer..Can't locate Math/GMP.pm in @INC (@INC contains: 
/Users/leelasheel/.cpan/build/Net-SSH-Perl-1.30/blib/lib 
/Users/leelasheel/.cpan/build/Net-SSH-Perl-1.30/blib/arch 
/Users/leelasheel/.cpan/build/Crypt-Blowfish-2.10/blib/arch 
/Users/leelasheel/.cpan/build/Crypt-Blowfish-2.10/blib/lib 
/Users/leelasheel/.cpan/build/Digest-HMAC-1.01/blib/arch 
/Users/leelasheel/.cpan/build/Digest-HMAC-1.01/blib/lib 
/Users/leelasheel/.cpan/build/Crypt-DES-2.05/blib/arch 
/Users/leelasheel/.cpan/build/Crypt-DES-2.05/blib/lib 
/Users/leelasheel/.cpan/build/Digest-SHA1-2.11/blib/arch 
/Users/leelasheel/.cpan/build/Digest-SHA1-2.11/blib/lib 
/Users/leelasheel/.cpan/build/Crypt-CBC-2.22/blib/arch 
/Users/leelasheel/.cpan/build/Crypt-CBC-2.22/blib/lib 
/Users/leelasheel/.cpan/build/Class-Loader-2.03/blib/arch 
/Users/leelasheel/.cpan/build/Class-Loader-2.03/blib/lib 
/opt/local/lib/perl5/5.8.8/darwin-2level /opt/local/lib/perl5/5.8.8 
/opt/local/lib/perl5/site_perl/5.8.8/darwin-2level 
/opt/local/lib/perl5/site_perl/5.8.8 /opt/local/lib/perl5/site_perl 
/opt/local/lib/perl5/vendor_perl/5.8.8/darwin-2level 
/opt/local/lib/perl5/vendor_perl/5.8.8 /opt/local/lib/perl5/vendor_perl .) 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..skipped
all skipped: Can't do packet tests without String::CRC32
t/04-config..ok  
t/05-cipher..ok  
t/06-circularok  
Failed Test   Stat Wstat Total Fail  Failed  List of Failed
---
t/02-buffer.t  255 6528019   38 200.00%  1-19
1 test skipped.
Failed 1/6 test scripts, 83.33% okay. 19/94 subtests failed, 79.79% okay.
make: *** [test_dynamic] Error 255
  /usr/bin/make test -- NOT OK
Running make install
  make test had returned bad status, won't install without force
__

anybody had this problem before?
I'm guessing it may have to do with my environment not being configured 
properly... but what is wrong? that is the question.

l-p




[EMAIL PROTECTED] wrote  


On Sep 5, 2007, at 5:45 AM, Louis-Philippe wrote:

 Hi,

 I was on my way to install Net::SSH::Perl when an error with  
 Math::GMP stopped me...
 I then installed libgmp successfully, tried again... no luck.
 then changed a couple of lines in Math::GMP Makefile.PL as written  
 in this previous mailing :

 http://www.nntp.perl.org/group/perl.macosx/2006/08/msg9995.html

 no luck again...
 when I compile I get this with the error:

 env MACOSX_DEPLOYMENT_TARGET=10.3 cc  -L/opt/local/lib -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)

I think your error is here ^^ (the call to ld)

 collect2: ld returned 1 exit status
 make: *** [blib/arch/auto/Math/GMP/GMP.bundle] Error 1

 any IDEA?


You may want to check the ld documentation to see if you can find  
that error message.

Google produces some interesting output if you search on the ld error  
string. I think this link might offer some help: http://prlmnks.org/ 
html/543267.html

It unfortunately looks non-trivial.

 l-p

Jeremiah Foster
[EMAIL PROTECTED]
---
Key fingerprint = 9616 2AD3 3AE0 502C BD75  65ED BDC3 0D44 2F5A E672

Re: unable to install Math::GMP

2007-09-05 Thread Chas Owens
On 9/5/07, Louis-Philippe [EMAIL PROTECTED] wrote:
snip
 Net::SSH::Perl still stops its install at the same spot it did before!!!
 :

 t/02-buffer..Can't locate Math/GMP.pm in @INC (@INC contains:
snip

can you say

perl -MMath::GMP -le 'print ok'

If not then you need to add the directory you installed Math::GMP into
to the PERL5LIB environmental variable


Re: unable to install Math::GMP

2007-09-05 Thread Louis-Philippe
here is what it does:

-bash-2.05b$ perl -MMath::GMP -e 'print ok'
ok-bash-2.05b$ 

l-p


[EMAIL PROTECTED] wrote  

On 9/5/07, Louis-Philippe [EMAIL PROTECTED] wrote:
snip
 Net::SSH::Perl still stops its install at the same spot it did before!!!
 :

 t/02-buffer..Can't locate Math/GMP.pm in @INC (@INC contains:
snip

can you say

perl -MMath::GMP -le 'print ok'

If not then you need to add the directory you installed Math::GMP into
to the PERL5LIB environmental variable

Re: unable to install Math::GMP

2007-09-05 Thread Louis-Philippe
so more like:

-bash-2.05b$ perl -MMath::GMP -le 'print ok'
ok

l-p



[EMAIL PROTECTED] wrote  

On 9/5/07, Louis-Philippe [EMAIL PROTECTED] wrote:
snip
 Net::SSH::Perl still stops its install at the same spot it did before!!!
 :

 t/02-buffer..Can't locate Math/GMP.pm in @INC (@INC contains:
snip

can you say

perl -MMath::GMP -le 'print ok'

If not then you need to add the directory you installed Math::GMP into
to the PERL5LIB environmental variable

Re: unable to install Math::GMP

2007-09-05 Thread Chas Owens
On 9/5/07, Louis-Philippe [EMAIL PROTECTED] wrote:
 here is what it does:

 -bash-2.05b$ perl -MMath::GMP -e 'print ok'
 ok-bash-2.05b$


If you had included the -l along with the -e it would have made more
sense, but that means perl can find Math::GMP (it would have thrown an
error otherwise).  Are you running make by hand or through cpan?
Also, do you have fink, portage, etc. installed?  It is possible you
are using two different Perl interpreters (one which can find the
module and one that can't).


Re: unable to install Math::GMP

2007-09-05 Thread Louis-Philippe
I tried both fink  macports in the past...
but I don't use any right now, and they left lots of trace in my system...
how would I know if my thing is wrecked?

l-p




[EMAIL PROTECTED] wrote  

On 9/5/07, Louis-Philippe [EMAIL PROTECTED] wrote:
 here is what it does:

 -bash-2.05b$ perl -MMath::GMP -e 'print ok'
 ok-bash-2.05b$


If you had included the -l along with the -e it would have made more
sense, but that means perl can find Math::GMP (it would have thrown an
error otherwise).  Are you running make by hand or through cpan?
Also, do you have fink, portage, etc. installed?  It is possible you
are using two different Perl interpreters (one which can find the
module and one that can't).

Re: unable to install Math::GMP

2007-09-05 Thread Chas Owens
On 9/5/07, Louis-Philippe [EMAIL PROTECTED] wrote:
 I tried both fink  macports in the past...
 but I don't use any right now, and they left lots of trace in my system...
 how would I know if my thing is wrecked?
snip

Not quite sure, the first thing I would do is say

which perl

to see which one is being used by the shell (it should be
/usr/bin/perl if I remember correctly).  Then I would check to see if
there is a perl interpreter installed in /usr/local, /opt, or /sw

find /usr/local /opt /sw -name perl

But I am really just shooting in the dark.  I am currently in Linux
(and will be for the next few hours), but when I get home I will boot
in Mac OS X and see if I can duplicate your problem (I believe I have
Fink installed).