Skip to main content

Thread: netcdf4-python install


hello,

trying install netcdf4-python on kubuntu 11.04
following wiki , have first installed hdf5-1.8.7 package. have first tried repo, did source.
step went (i guess). quite long compilation process.

have installed in /opt in contain /bin, /lib , /include directories
trying install netcdf-4.1.3 package.
using following command

code:
./configure --enable-netcdf-4 --with-hdf5=/opt/include/ --enable-share --prefix=/opt
but following error :

code:
checking floor in -lm... yes checking library containing h5fflush... -lhdf5 checking library containing h5dsis_scale... -lhdf5_hl checking hdf5.h usability... no checking hdf5.h presence... no checking hdf5.h... no configure: error: netcdf-4 requires hdf5, hdf5.h cannot found.
what don't understand hdf5.h present in include directory
code:
/opt/netcdf-4.1.3$ ls -l /opt/include/hdf5* -rw-r--r-- 1 root root 2655 2011-06-29 13:46 /opt/include/hdf5.h -rw-r--r-- 1 root root 1553 2011-06-29 13:46 /opt/include/hdf5_hl.h
any appreciate

i had similar issue, , fix changing environment variables @ compilation time.

instead of

./configure --enable-netcdf-4 --with-hdf5=/opt/hdf5/ --enable-share --prefix=/opt

can try with:

cflags="-i/opt/hdf5/current/include -l/opt/hdf5/current/lib" ./configure --enable-netcdf-4 --with-hdf5=/opt/hdf5/ --enable-share --prefix=/opt

change manage rid of this:

checking hdf5.h usability... no
checking hdf5.h presence... no
checking hdf5.h... no
configure: error: netcdf-4 requires hdf5, hdf5.h cannot found.


compiled fine, , passed compilation tests.


Forum The Ubuntu Forum Community Other Discussion and Support Education & Science netcdf4-python install


Ubuntu

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

PProHeadless.exe has stopped working error when opening projects in Adobe Media Encoder CS6

Preconditions Failed. - Joomla! Forum - community, help and support