If the problems with Math::Pari being unable to build persist, there is another way to build it: use a pre-build version of the PARI library. Put the link options on the Makefile.PL command line like this: perl Makefile.PL LIBPARI="-L/lib -lpari"