From: Peter K. <pet...@wa...> - 2015-10-15 09:03:06
|
On 10/14/2015 05:11 PM, jor...@cp... wrote: > Hi, > > > I'm trying to install tje CCPLOT. I did: > > python setup.py build > > > > then I had: > > > running build > running build_py > running build_ext > skipping 'ccplot/hdf.c' Cython extension (up-to-date) > building 'ccplot.hdf' extension > gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall > -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions > -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches > -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe > -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions > -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches > -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/hdf > -I/usr/local/include/hdf -I/usr/include/x86_64-linux-gnu/hdf > -I/opt/local/include > -I/usr/lib64/python2.7/site-packages/numpy/core/include > -I/usr/include/python2.7 -c ccplot/hdf.c -o > build/temp.linux-x86_64-2.7/ccplot/hdf.o > In file included from > /usr/lib64/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1761:0, > from > /usr/lib64/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17, > from > /usr/lib64/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4, > from ccplot/hdf.c:242: > /usr/lib64/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: > warning: #warning "Using deprecated NumPy API, disable it by " > "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] > #warning "Using deprecated NumPy API, disable it by " \ > ^ > ccplot/hdf.c:245:21: fatal error: hntdefs.h: Arquivo ou diretório não > encontrado > #include "hntdefs.h" > ^ > compilation terminated. > error: command 'gcc' failed with exit status 1 > > > Please what can I do to solve this error. > > > Thanks in advance, > > > Conrado Hi Conrado, The missing `hntdefs.h` file is from the libhdf4 library. Can you make sure it is installed on your system? What operating system are you using? Peter |