PGPLOT
Installation
http://pendientedemigracion.ucm.es/info/Astrof/software/howto/howto-pgplot.html
Install the PGPLOT with the graphic devices: /PS, /VPS, /CPS, /VCPS and /XServe (/PS is only black and white).
In the make file the linker flag could be so:
LFLAGS = -L$(PGPLOT_DIR) -lpgplot -lz -L/usr/lib64 -lX11