problem when installing Math::BigInt::GMP ...
problem when installing Math::BigInt::GMP ...
am 12.03.2007 23:55:41 von Raymundo
Dear,
Yesterday, I tried to install Net::OpenID::JanRain::Consumer. It
showed it needs Crypt::DH:
==========
---- Unsatisfied dependencies detected during [A/AR/ARNESOND/Net-
OpenID-JanRain-1.1.1.tar.gz] -----
Crypt::DH
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]
==========
While installing Crypt::DH and doing "make test", it took so long time
to proceed and finally it appeared to hang at 18th test. I tried to
"install Crypt::DH" first, but same result.
==========
cpan[38]> install Crypt::DH
Running install for module Crypt::DH
Running make for B/BT/BTROTT/Crypt-DH-0.06.tar.gz
Is already unwrapped into directory /root/.cpan/build/Crypt-DH-0.06
Has already been processed within this session
Running make test
Prepending /root/.cpan/build/Math-Complex-1.37/blib/arch /root/.cpan/
build/Math-Complex-1.37/blib/lib to PERL5LIB.
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/00-compile.t t/01-
dh.t
t/00-compile....Math::BigInt: couldn't load specified math lib(s),
fallback to Math::BigInt::Calc at /root/.cpan/build/Crypt-DH-0.06/blib/
lib/Crypt/DH.pm line 6
t/00-compile....ok
t/01-dh.........Math::BigInt: couldn't load specified math lib(s),
fallback to Math::BigInt::Calc at /root/.cpan/build/Crypt-DH-0.06/blib/
lib/Crypt/DH.pm line 6
t/01-dh.........ok 1/21
==========
1/21 <---- this number incresed so slowly (more than 30 munites to
reach 18/21) and it didn't go on from 18/21.
I had to push Ctrl+C and stop installing.
According to the above message, I looked at "/root/.cpan/build/Crypt-
DH-0.06/blib/lib/Crypt/DH.pm line 6" and I saw:
use Math::BigInt lib => "GMP,Pari";
Math::BigInt::Pari is installed in server, but Math::BigInt::GMP
isn't.
Then I tried to "install Math::BigInt::GMP" but I failed:
==========
cpan[36]> install Math::BigInt::GMP
Running install for module Math::BigInt::GMP
Running make for T/TE/TELS/math/Math-BigInt-GMP-1.19.tar.gz
Is already unwrapped into directory /root/.cpan/build/Math-BigInt-
GMP-1.19
Has already been processed within this session
Running make test
Prepending /root/.cpan/build/Math-Complex-1.37/blib/arch /root/.cpan/
build/Math-Complex-1.37/blib/lib to PERL5LIB.
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/bigfltpm....NOK 868/2042# Test 868 got: "1" (bigfltpm.inc at line
359)
# Expected: "undef"
t/bigfltpm....NOK 869/2042# Test 869 got: "1" (bigfltpm.inc at line
359 fail #2)
# Expected: "undef"
t/bigfltpm....NOK 870/2042# Test 870 got: "1" (bigfltpm.inc at line
359 fail #3)
# Expected: "undef"
t/bigfltpm....NOK 931/2042# Test 931 got: "1" (bigfltpm.inc at line
359 fail #4)
# Expected: "undef"
t/bigfltpm....NOK 932/2042# Test 932 got: "1" (bigfltpm.inc at line
359 fail #5)
# Expected: "undef"
t/bigfltpm....NOK 933/2042# Test 933 got: "1" (bigfltpm.inc at line
359 fail #6)
# Expected: "undef"
t/bigfltpm....NOK 934/2042# Test 934 got: "1" (bigfltpm.inc at line
359 fail #7)
# Expected: "undef"
t/bigfltpm....FAILED tests 868-870, 931-934
Failed 7/2042 tests, 99.66% okay
t/bigintg.....ok
t/bigintpm....NOK 790/3005# Test 790 got: "1" (bigintpm.inc at line
670)
# Expected: "undef"
t/bigintpm....NOK 791/3005# Test 791 got: "1" (bigintpm.inc at line
670 fail #2)
# Expected: "undef"
t/bigintpm....NOK 792/3005# Test 792 got: "1" (bigintpm.inc at line
670 fail #3)
# Expected: "undef"
t/bigintpm....NOK 828/3005# Test 828 got: "1" (bigintpm.inc at line
670 fail #4)
# Expected: "undef"
t/bigintpm....NOK 829/3005# Test 829 got: "1" (bigintpm.inc at line
670 fail #5)
# Expected: "undef"
t/bigintpm....NOK 830/3005# Test 830 got: "1" (bigintpm.inc at line
670 fail #6)
# Expected: "undef"
t/bigintpm....NOK 831/3005# Test 831 got: "1" (bigintpm.inc at line
670 fail #7)
# Expected: "undef"
t/bigintpm....FAILED tests 790-792, 828-831
Failed 7/3005 tests, 99.77% okay
t/pod.........ok
1/1 skipped: various reasons
t/pod_cov.....ok
1/1 skipped: various reasons
Failed Test Stat Wstat Total Fail List of Failed
------------------------------------------------------------ -------------------
t/bigfltpm.t 2042 7 868-870 931-934
t/bigintpm.t 3005 7 790-792 828-831
2 subtests skipped.
Failed 2/5 test scripts. 14/5341 subtests failed.
Files=5, Tests=5341, 18 wallclock secs (11.65 cusr + 0.80 csys =
12.45 CPU)
Failed 2/5 test programs. 14/5341 subtests failed.
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
Failed during this command:
TELS/math/Math-BigInt-GMP-1.19.tar.gz : make_test NO
==========
I don't know why it failed and what I can do for it...
My system is:
CentOS 4.4
2.6.9-42.ELsmp #1 SMP Sat Aug 12 09:39:11 CDT 2006 i686 i686 i386 GNU/
Linux
Perl 5.8.5
Any advices would be appreciated.
Raymundo at South Korea.
Re: problem when installing Math::BigInt::GMP ...
am 13.03.2007 02:51:30 von Sisyphus
"Raymundo" wrote in message
news:1173740140.945116.135160@q40g2000cwq.googlegroups.com.. .
..
..
>
> According to the above message, I looked at "/root/.cpan/build/Crypt-
> DH-0.06/blib/lib/Crypt/DH.pm line 6" and I saw:
>
> use Math::BigInt lib => "GMP,Pari";
>
> Math::BigInt::Pari is installed in server, but Math::BigInt::GMP
> isn't.
You don't really need *both* M::BI::GMP and M::BI::Pari. Either one should
do - yet apparently *both* modules are not being found.
>
> Then I tried to "install Math::BigInt::GMP" but I failed:
>
> ==========
> cpan[36]> install Math::BigInt::GMP
> Running install for module Math::BigInt::GMP
> Running make for T/TE/TELS/math/Math-BigInt-GMP-1.19.tar.gz
> Is already unwrapped into directory /root/.cpan/build/Math-BigInt-
> GMP-1.19
> Has already been processed within this session
> Running make test
> Prepending /root/.cpan/build/Math-Complex-1.37/blib/arch /root/.cpan/
> build/Math-Complex-1.37/blib/lib to PERL5LIB.
> PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
> "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
> t/bigfltpm....NOK 868/2042# Test 868 got: "1" (bigfltpm.inc at line
> 359)
> # Expected: "undef"
> t/bigfltpm....NOK 869/2042# Test 869 got: "1" (bigfltpm.inc at line
> 359 fail #2)
> # Expected: "undef"
> t/bigfltpm....NOK 870/2042# Test 870 got: "1" (bigfltpm.inc at line
> 359 fail #3)
> # Expected: "undef"
> t/bigfltpm....NOK 931/2042# Test 931 got: "1" (bigfltpm.inc at line
> 359 fail #4)
> # Expected: "undef"
> t/bigfltpm....NOK 932/2042# Test 932 got: "1" (bigfltpm.inc at line
> 359 fail #5)
> # Expected: "undef"
> t/bigfltpm....NOK 933/2042# Test 933 got: "1" (bigfltpm.inc at line
> 359 fail #6)
> # Expected: "undef"
> t/bigfltpm....NOK 934/2042# Test 934 got: "1" (bigfltpm.inc at line
> 359 fail #7)
> # Expected: "undef"
> t/bigfltpm....FAILED tests 868-870, 931-934
> Failed 7/2042 tests, 99.66% okay
> t/bigintg.....ok
> t/bigintpm....NOK 790/3005# Test 790 got: "1" (bigintpm.inc at line
> 670)
> # Expected: "undef"
> t/bigintpm....NOK 791/3005# Test 791 got: "1" (bigintpm.inc at line
> 670 fail #2)
> # Expected: "undef"
> t/bigintpm....NOK 792/3005# Test 792 got: "1" (bigintpm.inc at line
> 670 fail #3)
> # Expected: "undef"
> t/bigintpm....NOK 828/3005# Test 828 got: "1" (bigintpm.inc at line
> 670 fail #4)
> # Expected: "undef"
> t/bigintpm....NOK 829/3005# Test 829 got: "1" (bigintpm.inc at line
> 670 fail #5)
> # Expected: "undef"
> t/bigintpm....NOK 830/3005# Test 830 got: "1" (bigintpm.inc at line
> 670 fail #6)
> # Expected: "undef"
> t/bigintpm....NOK 831/3005# Test 831 got: "1" (bigintpm.inc at line
> 670 fail #7)
> # Expected: "undef"
> t/bigintpm....FAILED tests 790-792, 828-831
> Failed 7/3005 tests, 99.77% okay
> t/pod.........ok
> 1/1 skipped: various reasons
> t/pod_cov.....ok
> 1/1 skipped: various reasons
> Failed Test Stat Wstat Total Fail List of Failed
> ------------------------------------------------------------ -------------------
> t/bigfltpm.t 2042 7 868-870 931-934
> t/bigintpm.t 3005 7 790-792 828-831
> 2 subtests skipped.
> Failed 2/5 test scripts. 14/5341 subtests failed.
> Files=5, Tests=5341, 18 wallclock secs (11.65 cusr + 0.80 csys =
> 12.45 CPU)
> Failed 2/5 test programs. 14/5341 subtests failed.
> 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
> Failed during this command:
> TELS/math/Math-BigInt-GMP-1.19.tar.gz : make_test NO
> ==========
>
> I don't know why it failed and what I can do for it...
>
It could just be a bug in the test script. Take a look at the 14 tests that
failed and see if you can work out why they failed.
It looks likely that all of the failing tests fail for exactly the same
reason. Once you know why *one* of those tests failed, you'll probably know
why they *all* failed.
Which version of Math::BigInt do you have ? There's a minimum version number
required - you can find which version of Math::BigInt (or later) is needed
by looking in the M::BI::GMP Makefile.PL. Make sure that requirement is
satisified.
Cheers,
Rob
Re: problem when installing Math::BigInt::GMP ...
am 13.03.2007 13:15:36 von Raymundo
Thank you, Rob, for your kind advice.
I'm not good at Perl. I looked at bigintpm.inc but it is very
difficult for me to see other one's code, and the one is an expert as
perl module provider. :-)
On 3¿ù13ÀÏ, ¿ÀÀü10½Ã51ºÐ, "Sisyphus"
ail.afraid.org> wrote:
> "Raymundo" wrote in message
>
> > According to the above message, I looked at "/root/.cpan/build/Crypt-
> > DH-0.06/blib/lib/Crypt/DH.pm line 6" and I saw:
>
> > use Math::BigInt lib =3D> "GMP,Pari";
>
> > Math::BigInt::Pari is installed in server, but Math::BigInt::GMP
> > isn't.
>
> You don't really need *both* M::BI::GMP and M::BI::Pari. Either one should
> do - yet apparently *both* modules are not being found.
You are right. There isn't M::BI::GMP nor M::BI::Pari in my server. It
might be that I was confused with Math::Pari, which is installed.
I tried to install M::BI::Pari instead GMP, but I failed again.
But an hour ago, I found someone else have already reported about this
problem in CPAN.
http://rt.cpan.org/Public/Bug/Display.html?id=3D25328 (for Math-BigInt-
GMP, by Lawrenz Mr Hans)
That is the same error I got. I think this is the problem of
compatibility and I can't handle it. :-)
I reported the problem of Pari ( http://rt.cpan.org/Public/Bug/Display.html=
?id=3D25409
)
Mr Hans said, in his report, that he changed back to Math::BigInt
version 1.79 and the tests were successful. I'll try 1.79 now.. but I
don't know how to downgrade the existing module using cpan. :-/ I have
to read cpan manual first.
Anyway, thanks again and I wish you have a nice day~
Sorry that I'm not good at English.
Raymundo in South Korea