|Just another Perl shrine|
Trouble installing Math::Pariby grinder (Bishop)
|on Jul 26, 2001 at 18:52 UTC||Need Help??|
grinder has asked for the
wisdom of the Perl Monks concerning the following question:
I read Factoring Decimal Digits with interest yesterday, especially tilly's response about using Math::Pari. I wish I had known about this when I wrote a a very simple obfuscation. Said obfu revolved around dividing and taking the remainder of a very large number (3269658930343791523110212544821057737304852999550, to be precise). What I had wanted to do at the time was to factor that number. Math::Pari would have come in handy for that purpose.
So I thought I'd install it. And that is where my troubles began.
I've tried two different Linux flavours, OpenBSD, FreeBSD and Solaris, and each time it bombs out, with the same error. The PARI library itself appears to install okay. Its own regression tests pass. But when I try to run the Perl tests I see nothing but failures.
Trying to run just the first test I get the following:
So let's have a look at t/analyz.t and test_eng/Testout.pm and see what is going on
Ok, this just appears to be doing an indirection to PARI's own regression tests.
Here I drew a blank. I don't understand how the error message "Variable in perl2pari is not of known type at test_eng/Testout.pm line 8." relates to the above code. Line 8 is just saying $file = shift;
I don't know if you've ever tried to run the debugger on a regression test, but after a bit of spelunking I was able to see that all Test::Harness does is to say words to the effect of
That sounds easy enough, I think I'll try that myself. This time I've got it.
Okay, so there's some sneaky overloading going on... what am I to do about it? Another thing that dampens my spirits it that the CPAN Testers rate the module as a FAIL on both ppc-linux and sparc-openbsd platforms. Certainly I have nothing so exotic, but right now I'd appreciate any pointers to help me solve my problem. I must say that the README and INSTALL files are particularly useless with respect to troubleshooting.
So, tilly, how did you do it?--
g r i n d e r