Ubuntu 14.04 and 16.04 failing with "Python.h: No such file or directory"
LALInspiral on Ubuntu 14.04 and 16.04 is failing to build with:
make[9]: Entering directory '/builds/lscsoft/lalsuite/lalsuite-6.49.1/_build/sub/lalinspiral/python/lalinspiral'
CC _thinca_la-_thinca.lo
../../../../../lalinspiral/python/lalinspiral/_thinca.c:29:20: fatal error: Python.h: No such file or directory
compilation terminated.
Makefile:653: recipe for target '_thinca_la-_thinca.lo' failed
This header is located at /usr/include/python2.7/Python.h
. This is the same location as on Debian and Ubuntu-18.04 systems, where this is not a problem. It looks like -I/usr/include/python2.7
is not getting passed to the compiler on Ubuntu 14.04 and 16.04 but is on the other systems, need to figure out why.