Closed jslavin closed 9 years ago
You need to have the hdf4 C library installed in your system. See the installation instructions: http://fhs.github.io/python-hdf4/install.html
I do have it installed. I needed to have the environment variables INCLUDE_DIRS and LIBRARY_DIRS set. I did that and everything installed correctly. I did that yesterday and should have updated my post.
I get this error message:
pyhdf/hdfext_wrap.c:3681:10: fatal error: 'hdf.h' file not found
Hi,
I just tried to install python-hdf4 via pip and it failed. I'm using pip in the anaconda distribution. The problem seems to be with compiling hdfext_wrap.c:
...(etc.)
so certain header files are missing, which leads to a bunch of 'undeclared' errors (I think), and finally:
error: Command "gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/export/slavin/python/anaconda/lib/python2.7/site-packages/numpy/core/include -I/export/slavin/python/anaconda/include/python2.7 -c pyhdf/hdfext_wrap.c -o build/temp.linux-x86_64-2.7/pyhdf/hdfext_wrap.o -DNOSZIP" failed with exit status 1
Any suggestions?
Regards, Jon Slavin