I'm trying to install http://astronomy.swin.edu.au/~mmurphy/UVES_popler on CentOS release 5.6; the error that I'm getting when I try to make is:
In file included from pg_button.c:25:
pg_plot.h:29:21: error: cpgplot.h: No such file or directory
pg_button.c: In function ‘pg_button’:
pg_button.c:33: warning: implicit declaration of function ‘cpgqci’
pg_button.c:33: warning: implicit declaration of function ‘cpgqch’
pg_button.c:33: warning: implicit declaration of function ‘cpgqfs’
pg_button.c:36: warning: implicit declaration of function ‘cpgsci’
pg_button.c:36: warning: implicit declaration of function ‘cpgsfs’
pg_button.c:37: warning: implicit declaration of function ‘cpgrect’
pg_button.c:40: warning: implicit declaration of function ‘cpgsch’
pg_button.c:40: warning: implicit declaration of function ‘cpgqcs’
pg_button.c:41: warning: implicit declaration of function ‘cpgptxt’
make: *** [pg_button.o] Error 1
So I tried explicitly including a link to the file (it exists in that location) by altering the makefile to say:
# Linux
SHELL = tcsh
CC = gcc
FC = gfortran
CFLAGS = -O2 -Wall -I./
# LIBS += -lm -lcpgplot -lpgplot -lX11 -lcfitsio
# LIBS += -lm -lcpgplot -lX11 -lcfitsio -L/home/ssi/jwhitmore/progs/pgplot.gfortran/
LIBS += -lm -lcpgplot -lX11 -lcfitsio -L/home/ssi/jwhitmore/progs/pgplot.gfortran/ -L/home/ssi/jwhitmore/progs/pgplot.gfortran/cpgplot.h
Getting the same error. I don't understand how to address the error -- should I link to the file in a different way? Or something entirely different?
Any help on this would be greatly appreciated!