I am in a similar situation as Karl Bas.
I am running ubuntu 11.10 and have followed the instructions http://code.google.com/p/netcdf4-pyt.../UbuntuInstall.
In order to install netcdf4-python I have downloaded: netCDF4-0.9.9.tar.gz from http://code.google.com/p/netcdf4-pyt...ar.gz&can=2&q=
and have done:
Code:
sudo python setup.py install
obtaining the following output:
Code:
HDF5_DIR environment variable not set, checking some standard locations ..
checking /home/jvcantavella ...
checking /usr/local ...
HDF5 found in /usr/local
NETCDF4_DIR environment variable not set, checking standard locations..
checking /home/jvcantavella ...
checking /usr/local ...
netCDF4 found in /usr/local
running install
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
build_src
building py_modules sources
building extension "netCDF4" sources
build_src: building npy-pkg config files
running build_py
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
building 'netCDF4' extension
compiling C sources
C compiler: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC
compile options: '-I/usr/local/include -I/usr/local/include -I/usr/lib/pymodules/python2.7/numpy/core/include -I/usr/include/python2.7 -c'
gcc: netCDF4.c
netCDF4.c: In function ‘__pyx_pf_7netCDF4_10_Dimension___init__’:
netCDF4.c:5762:13: warning: variable ‘__pyx_v_dim’ set but not used [-Wunused-but-set-variable]
netCDF4.c: In function ‘__pyx_pf_7netCDF4_7Dataset_2__exit__’:
netCDF4.c:14953:13: warning: variable ‘__pyx_v_traceback’ set but not used [-Wunused-but-set-variable]
netCDF4.c:14952:13: warning: variable ‘__pyx_v_value’ set but not used [-Wunused-but-set-variable]
netCDF4.c:14951:13: warning: variable ‘__pyx_v_atype’ set but not used [-Wunused-but-set-variable]
netCDF4.c: In function ‘__pyx_pf_7netCDF4_7Dataset_7_redef’:
netCDF4.c:15772:7: warning: variable ‘__pyx_v_ierr’ set but not used [-Wunused-but-set-variable]
netCDF4.c: In function ‘__pyx_pf_7netCDF4_7Dataset_8_enddef’:
netCDF4.c:15802:7: warning: variable ‘__pyx_v_ierr’ set but not used [-Wunused-but-set-variable]
netCDF4.c: In function ‘__pyx_pf_7netCDF4_8Variable___init__’:
netCDF4.c:21309:7: warning: implicit declaration of function ‘nc_get_var_chunk_cache’ [-Wimplicit-function-declaration]
netCDF4.c:21364:7: warning: implicit declaration of function ‘nc_set_var_chunk_cache’ [-Wimplicit-function-declaration]
netCDF4.c:21708:33: error: ‘NC_CONTIGUOUS’ undeclared (first use in this function)
netCDF4.c:21708:33: note: each undeclared identifier is reported only once for each function it appears in
netCDF4.c:21746:33: error: ‘NC_CHUNKED’ undeclared (first use in this function)
netCDF4.c:21880:117: warning: pointer targets in passing argument 4 of ‘nc_def_var_chunking’ differ in signedness [-Wpointer-sign]
/usr/local/include/netcdf.h:661:1: note: expected ‘int *’ but argument is of type ‘size_t *’
netCDF4.c: In function ‘__pyx_pf_7netCDF4_8Variable_11chunking’:
netCDF4.c:24815:109: warning: pointer targets in passing argument 4 of ‘nc_inq_var_chunking’ differ in signedness [-Wpointer-sign]
/usr/local/include/netcdf.h:665:1: note: expected ‘int *’ but argument is of type ‘size_t *’
netCDF4.c: In function ‘__pyx_pf_7netCDF4_10_Dimension___init__’:
netCDF4.c:5762:13: warning: variable ‘__pyx_v_dim’ set but not used [-Wunused-but-set-variable]
netCDF4.c: In function ‘__pyx_pf_7netCDF4_7Dataset_2__exit__’:
netCDF4.c:14953:13: warning: variable ‘__pyx_v_traceback’ set but not used [-Wunused-but-set-variable]
netCDF4.c:14952:13: warning: variable ‘__pyx_v_value’ set but not used [-Wunused-but-set-variable]
netCDF4.c:14951:13: warning: variable ‘__pyx_v_atype’ set but not used [-Wunused-but-set-variable]
netCDF4.c: In function ‘__pyx_pf_7netCDF4_7Dataset_7_redef’:
netCDF4.c:15772:7: warning: variable ‘__pyx_v_ierr’ set but not used [-Wunused-but-set-variable]
netCDF4.c: In function ‘__pyx_pf_7netCDF4_7Dataset_8_enddef’:
netCDF4.c:15802:7: warning: variable ‘__pyx_v_ierr’ set but not used [-Wunused-but-set-variable]
netCDF4.c: In function ‘__pyx_pf_7netCDF4_8Variable___init__’:
netCDF4.c:21309:7: warning: implicit declaration of function ‘nc_get_var_chunk_cache’ [-Wimplicit-function-declaration]
netCDF4.c:21364:7: warning: implicit declaration of function ‘nc_set_var_chunk_cache’ [-Wimplicit-function-declaration]
netCDF4.c:21708:33: error: ‘NC_CONTIGUOUS’ undeclared (first use in this function)
netCDF4.c:21708:33: note: each undeclared identifier is reported only once for each function it appears in
netCDF4.c:21746:33: error: ‘NC_CHUNKED’ undeclared (first use in this function)
netCDF4.c:21880:117: warning: pointer targets in passing argument 4 of ‘nc_def_var_chunking’ differ in signedness [-Wpointer-sign]
/usr/local/include/netcdf.h:661:1: note: expected ‘int *’ but argument is of type ‘size_t *’
netCDF4.c: In function ‘__pyx_pf_7netCDF4_8Variable_11chunking’:
netCDF4.c:24815:109: warning: pointer targets in passing argument 4 of ‘nc_inq_var_chunking’ differ in signedness [-Wpointer-sign]
/usr/local/include/netcdf.h:665:1: note: expected ‘int *’ but argument is of type ‘size_t *’
error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include -I/usr/local/include -I/usr/lib/pymodules/python2.7/numpy/core/include -I/usr/include/python2.7 -c netCDF4.c -o build/temp.linux-i686-2.7/netCDF4.o" failed with exit status 1
any idea?
Thank you in advance,
Bookmarks