Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue compiling/linking inject_pulsar.c #9

Open
aweaver1fandm opened this issue Aug 15, 2022 · 0 comments
Open

Issue compiling/linking inject_pulsar.c #9

aweaver1fandm opened this issue Aug 15, 2022 · 0 comments

Comments

@aweaver1fandm
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant