in reply to installing Math::Pari on AIX

It looks to me as if the C compiler was missing.

In any case, try using Net::SFTP::Foreign instead, or Net::SFTP::Foreign::Compat which provides Net::SFTP API.