in reply to Math::Pari won't install

It's pretty much telling you what to do with this last line:

#error "no inlining without -O. Put back -O or remove -DGCC_INLINE"
Try setting one of those compiler options.