well, I've already tried to install Math::Pari about 6 times. I was getting an udefined symbol on PERL_UNUSED_VAR and found a definition in perl.h and pasted that into Pari.xs but then Crypt::Random bombed with an illegal value generated from Math::Pari.
I googled and saw other people with the same problem and no solution.