-
Notifications
You must be signed in to change notification settings - Fork 19
Description
Attempting to compile on Linux (Ubuntu)
I installed Tempo2 and set the TEMPO2 environment variable prior to running configure. Configure finds the tempo2 directory and sets the appropriate TEMPO2 flags in the Makefile (see snippet below) but when I compile (make) I get the following error:
gcc -DHAVE_CONFIG_H -I. -I.. . -DPSRFITS -I/include -DFFTW_THREADS -std=gnu99 -g -O2 -fopenmp -DHAVE_OPENMP -MT inject_pulsar-inject_pulsar.o -MD -MP -MF .deps/inject_pulsar-inject_pulsar.Tpo -c -o inject_pulsar-inject_pulsar.o test -f 'inject_pulsar.c' || echo './'inject_pulsar.c
inject_pulsar.c:19:10: fatal error: tempo2pred.h: No such file or directory
19 | #include <tempo2pred.h>
| ^~~~~~~~~~~~~~
compilation terminated.
Appropriate lines from Makefile:
TEMPO2_CFLAGS = -I/opt/tempo2-bin/include
TEMPO2_LIBS = -L/opt/tempo2-bin/lib -ltempo2pred -lm
I have temporarily worked around the issue with the following
export C_INCLUDE_PATH=/opt/tempo2-bin/include
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/tempo2-bin/lib
make (which restarted compilation and ran successfully)