I recently came across this same trouble, and found a quick and easy solution that I thought I'd share. When you compiled the full PGPLOT distribution, you likely compiled it by something along the lines of (check the pgplot docs)
makemake "wherever the source files are" linux g77_gcc
but looking at the top line of your output of PGPLOT-2.20, it says
Found compiler g77 Found compiler gfortran ExtUtils::F77: Using system=Linux compiler=GFortran ... ExtUtils::F77: Compiler: gfortran
and therein lies the rub: pgplot was compiled and linked against G77, and PGPLOT-2.20 is compiling/linking against gfortran and the two are not compatible. Take a look at the Makefile.PL file in the PGPLOT-2.20 directory and UNcomment the line that reads something like
#use ExtUtils::F77 qw(generic g77);
and this will force PGPLOT-2.20 to use g77 instead of gfortan like it wants to. Other suggestions on the interwebs suggest compiling pgplot itself through gfortran, but this leaves you hanging dry if you need some of the more common output types. This took a while to figure out, but it works as expected for me.

In reply to Re^3: Problems installing PGPLOT.pm by Anonymous Monk
in thread Problems installing PGPLOT.pm by nickschurch

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.