rabrahm / ceres

A set of pipelines and routines for echelle spectrographs
MIT License
39 stars 27 forks source link

Error in jplephem.cc when installing SSEphem #14

Closed rickynilsson closed 6 years ago

rickynilsson commented 6 years ago
Error in SSEphem installation! The error was:
        clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
        jplephem.cc:2:10: fatal error: 'arrayobject.h' file not found
        #include "arrayobject.h"
                 ^
        1 error generated.
        make: *** [jplephem.o] Error 1

I've updated the paths in the Makefile:

PY_PREFIX := ~/anaconda/

#You might also need to update these other three lines
SWIG = /usr/local/bin/swig
INUM = $(PY_PREFIX)/lib/python2.7/site-packages/numpy/core/include/numpy/
PY   = $(PY_PREFIX)/include/python2.7/

I also checked that arrayobject.h exists in ~/anaconda//lib/python2.7/site-packages/numpy/core/include/numpy/.

Any suggestions?

jmccormac01 commented 6 years ago

Hi Ricky, I’d try manually expanding the tilde to see if that helps. So /home/Ricky/anaconda/ or what ever your $HOME path is. Cheers, James

rickynilsson commented 6 years ago

That's what I get for being lazy. Thanks @jmccormac01!