So, I followed the more detailed (but not so intuitive) descriptions for installing all hdf5, netcdf-4, and netCDF4, latest stable versions. Now, I bump into a different problem which seem to be related to libcurl (errorlog.txt attached). Can't quite figure out what's wrong, but I guess whatever libcurl-related packages I've installed that comes with cygwin is not enough?
Regards, Kåre > Edvardsen Kåre wrote: > > I need to install the netCDF4 package which is the > Python/numpy > > interface to netCDF > > (see http://code.google.com/p/netcdf4-python/ ) > > > > I've tried to install version 0.9.4 and later, but they all > give pretty > > much the same error message (attached). > > For me this looks like it is not ment to work under cygwin, > but if > > anyone can help me out, I would really appreciate it. > > > > Reards, > > Kåre > > > > > > > > ------------------------------------------------------------------------ > > > > -- > > Problem reports: http://cygwin.com/problems.html > > FAQ: http://cygwin.com/faq/ > > Documentation: http://cygwin.com/docs.html > > Unsubscribe info: > http://cygwin.com/ml/#unsubscribe-simple > I don't really use netCDF, but I read about a similar > situation in here: > http://code.google.com/p/netcdf4-python/issues/detail?id=2 > > So it seems you require the flag '--enable-netcdf-4' when > calling the > configure script for netcdf-4 or you haven't installed it at > all. I > would recommend reading the building documentation for > netcdf4-python > [1] and following the steps in detail. Specifically installing > HDF5 and > netcdf-4 before attempting to build netcdf4-python. > > Hope it helps, > Tomas. > > [1]: http://netcdf4-python.googlecode.com/svn/trunk/README >
HDF5_DIR environment variable not set, checking some standard locations .. checking /home/kare ... checking /usr/local ... HDF5 found in /usr/local NETCDF4_DIR environment variable not set, checking standard locations.. checking /home/kare ... 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 -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes compile options: '-I/usr/local/include -I/usr/local/include -I/usr/lib/python2.6/site-packages/numpy/core/include -I/usr/include/python2.6 -c' gcc: netCDF4.c netCDF4.c: In function â__pyx_f_7netCDF4__find_cmptypeâ: netCDF4.c:34120:11: warning: â__pyx_v_xtypeâ may be used uninitialized in this function netCDF4.c: In function â__pyx_pf_7netCDF4_8Variable_10chunkingâ: netCDF4.c:24458:42: warning: â__pyx_v_ndimsâ may be used uninitialized in this function gcc -shared -Wl,--enable-auto-image-base build/temp.cygwin-1.7.9-i686-2.6/netCDF4.o -L/usr/local/lib -L/usr/local/lib -L/usr/lib/python2.6/config -Wl,-R/usr/local/lib -Wl,-R/usr/local/lib -lnetcdf -lhdf5_hl -lhdf5 -lz -lpython2.6 -o build/lib.cygwin-1.7.9-i686-2.6/netCDF4.dll /usr/local/lib/libnetcdf.a(liboc_la-ocinternal.o): In function `ocinternalinitialize': /home/kare/src/netcdf-4.1.3/oc/ocinternal.c:142: undefined reference to `_curl_version_info' /usr/local/lib/libnetcdf.a(liboc_la-http.o): In function `ocfetchhttpcode': /home/kare/src/netcdf-4.1.3/oc/http.c:27: undefined reference to `_curl_easy_getinfo' /usr/local/lib/libnetcdf.a(liboc_la-http.o): In function `ocfetchurl_file': /home/kare/src/netcdf-4.1.3/oc/http.c:41: undefined reference to `_curl_easy_setopt' /home/kare/src/netcdf-4.1.3/oc/http.c:46: undefined reference to `_curl_easy_setopt' /home/kare/src/netcdf-4.1.3/oc/http.c:79: undefined reference to `_curl_easy_strerror' /home/kare/src/netcdf-4.1.3/oc/http.c:51: undefined reference to `_curl_easy_setopt' /home/kare/src/netcdf-4.1.3/oc/http.c:56: undefined reference to `_curl_easy_setopt' /home/kare/src/netcdf-4.1.3/oc/http.c:60: undefined reference to `_curl_easy_perform' /home/kare/src/netcdf-4.1.3/oc/http.c:74: undefined reference to `_curl_easy_getinfo' /usr/local/lib/libnetcdf.a(liboc_la-http.o): In function `ocfetchurl': /home/kare/src/netcdf-4.1.3/oc/http.c:91: undefined reference to `_curl_easy_setopt' /home/kare/src/netcdf-4.1.3/oc/http.c:96: undefined reference to `_curl_easy_setopt' /home/kare/src/netcdf-4.1.3/oc/http.c:133: undefined reference to `_curl_easy_strerror' /home/kare/src/netcdf-4.1.3/oc/http.c:101: undefined reference to `_curl_easy_setopt' /home/kare/src/netcdf-4.1.3/oc/http.c:106: undefined reference to `_curl_easy_setopt' /home/kare/src/netcdf-4.1.3/oc/http.c:108: undefined reference to `_curl_easy_perform' /home/kare/src/netcdf-4.1.3/oc/http.c:119: undefined reference to `_curl_easy_getinfo' /home/kare/src/netcdf-4.1.3/oc/http.c:111: undefined reference to `_curl_easy_strerror' /usr/local/lib/libnetcdf.a(liboc_la-http.o): In function `occurlopen': /home/kare/src/netcdf-4.1.3/oc/http.c:230: undefined reference to `_curl_easy_init' /home/kare/src/netcdf-4.1.3/oc/http.c:234: undefined reference to `_curl_easy_setopt' /home/kare/src/netcdf-4.1.3/oc/http.c:238: undefined reference to `_curl_easy_setopt' /usr/local/lib/libnetcdf.a(liboc_la-http.o): In function `ocfetchlastmodified': /home/kare/src/netcdf-4.1.3/oc/http.c:261: undefined reference to `_curl_easy_setopt' /home/kare/src/netcdf-4.1.3/oc/http.c:266: undefined reference to `_curl_easy_setopt' /home/kare/src/netcdf-4.1.3/oc/http.c:267: undefined reference to `_curl_easy_setopt' /usr/local/lib/libnetcdf.a(liboc_la-http.o):/home/kare/src/netcdf-4.1.3/oc/http.c:268: more undefined references to `_curl_easy_setopt' follow /usr/local/lib/libnetcdf.a(liboc_la-http.o): In function `ocfetchlastmodified': /home/kare/src/netcdf-4.1.3/oc/http.c:273: undefined reference to `_curl_easy_perform' /home/kare/src/netcdf-4.1.3/oc/http.c:282: undefined reference to `_curl_easy_strerror' /home/kare/src/netcdf-4.1.3/oc/http.c:276: undefined reference to `_curl_easy_getinfo' /usr/local/lib/libnetcdf.a(liboc_la-http.o): In function `occurlclose': /home/kare/src/netcdf-4.1.3/oc/http.c:251: undefined reference to `_curl_easy_cleanup' /usr/local/lib/libnetcdf.a(liboc_la-curlfunctions.o): In function `ocset_curl_flags': /home/kare/src/netcdf-4.1.3/oc/curlfunctions.c:63: undefined reference to `_curl_easy_setopt' /home/kare/src/netcdf-4.1.3/oc/curlfunctions.c:65: undefined reference to `_curl_easy_setopt' /home/kare/src/netcdf-4.1.3/oc/curlfunctions.c:36: undefined reference to `_curl_easy_setopt' /home/kare/src/netcdf-4.1.3/oc/curlfunctions.c:41: undefined reference to `_curl_easy_setopt' /home/kare/src/netcdf-4.1.3/oc/curlfunctions.c:46: undefined reference to `_curl_easy_setopt' /usr/local/lib/libnetcdf.a(liboc_la-curlfunctions.o):/home/kare/src/netcdf-4.1.3/oc/curlfunctions.c:57: more undefined references to `_curl_easy_setopt' follow collect2: ld returned 1 exit status /usr/local/lib/libnetcdf.a(liboc_la-ocinternal.o): In function `ocinternalinitialize': /home/kare/src/netcdf-4.1.3/oc/ocinternal.c:142: undefined reference to `_curl_version_info' /usr/local/lib/libnetcdf.a(liboc_la-http.o): In function `ocfetchhttpcode': /home/kare/src/netcdf-4.1.3/oc/http.c:27: undefined reference to `_curl_easy_getinfo' /usr/local/lib/libnetcdf.a(liboc_la-http.o): In function `ocfetchurl_file': /home/kare/src/netcdf-4.1.3/oc/http.c:41: undefined reference to `_curl_easy_setopt' /home/kare/src/netcdf-4.1.3/oc/http.c:46: undefined reference to `_curl_easy_setopt' /home/kare/src/netcdf-4.1.3/oc/http.c:79: undefined reference to `_curl_easy_strerror' /home/kare/src/netcdf-4.1.3/oc/http.c:51: undefined reference to `_curl_easy_setopt' /home/kare/src/netcdf-4.1.3/oc/http.c:56: undefined reference to `_curl_easy_setopt' /home/kare/src/netcdf-4.1.3/oc/http.c:60: undefined reference to `_curl_easy_perform' /home/kare/src/netcdf-4.1.3/oc/http.c:74: undefined reference to `_curl_easy_getinfo' /usr/local/lib/libnetcdf.a(liboc_la-http.o): In function `ocfetchurl': /home/kare/src/netcdf-4.1.3/oc/http.c:91: undefined reference to `_curl_easy_setopt' /home/kare/src/netcdf-4.1.3/oc/http.c:96: undefined reference to `_curl_easy_setopt' /home/kare/src/netcdf-4.1.3/oc/http.c:133: undefined reference to `_curl_easy_strerror' /home/kare/src/netcdf-4.1.3/oc/http.c:101: undefined reference to `_curl_easy_setopt' /home/kare/src/netcdf-4.1.3/oc/http.c:106: undefined reference to `_curl_easy_setopt' /home/kare/src/netcdf-4.1.3/oc/http.c:108: undefined reference to `_curl_easy_perform' /home/kare/src/netcdf-4.1.3/oc/http.c:119: undefined reference to `_curl_easy_getinfo' /home/kare/src/netcdf-4.1.3/oc/http.c:111: undefined reference to `_curl_easy_strerror' /usr/local/lib/libnetcdf.a(liboc_la-http.o): In function `occurlopen': /home/kare/src/netcdf-4.1.3/oc/http.c:230: undefined reference to `_curl_easy_init' /home/kare/src/netcdf-4.1.3/oc/http.c:234: undefined reference to `_curl_easy_setopt' /home/kare/src/netcdf-4.1.3/oc/http.c:238: undefined reference to `_curl_easy_setopt' /usr/local/lib/libnetcdf.a(liboc_la-http.o): In function `ocfetchlastmodified': /home/kare/src/netcdf-4.1.3/oc/http.c:261: undefined reference to `_curl_easy_setopt' /home/kare/src/netcdf-4.1.3/oc/http.c:266: undefined reference to `_curl_easy_setopt' /home/kare/src/netcdf-4.1.3/oc/http.c:267: undefined reference to `_curl_easy_setopt' /usr/local/lib/libnetcdf.a(liboc_la-http.o):/home/kare/src/netcdf-4.1.3/oc/http.c:268: more undefined references to `_curl_easy_setopt' follow /usr/local/lib/libnetcdf.a(liboc_la-http.o): In function `ocfetchlastmodified': /home/kare/src/netcdf-4.1.3/oc/http.c:273: undefined reference to `_curl_easy_perform' /home/kare/src/netcdf-4.1.3/oc/http.c:282: undefined reference to `_curl_easy_strerror' /home/kare/src/netcdf-4.1.3/oc/http.c:276: undefined reference to `_curl_easy_getinfo' /usr/local/lib/libnetcdf.a(liboc_la-http.o): In function `occurlclose': /home/kare/src/netcdf-4.1.3/oc/http.c:251: undefined reference to `_curl_easy_cleanup' /usr/local/lib/libnetcdf.a(liboc_la-curlfunctions.o): In function `ocset_curl_flags': /home/kare/src/netcdf-4.1.3/oc/curlfunctions.c:63: undefined reference to `_curl_easy_setopt' /home/kare/src/netcdf-4.1.3/oc/curlfunctions.c:65: undefined reference to `_curl_easy_setopt' /home/kare/src/netcdf-4.1.3/oc/curlfunctions.c:36: undefined reference to `_curl_easy_setopt' /home/kare/src/netcdf-4.1.3/oc/curlfunctions.c:41: undefined reference to `_curl_easy_setopt' /home/kare/src/netcdf-4.1.3/oc/curlfunctions.c:46: undefined reference to `_curl_easy_setopt' /usr/local/lib/libnetcdf.a(liboc_la-curlfunctions.o):/home/kare/src/netcdf-4.1.3/oc/curlfunctions.c:57: more undefined references to `_curl_easy_setopt' follow collect2: ld returned 1 exit status error: Command "gcc -shared -Wl,--enable-auto-image-base build/temp.cygwin-1.7.9-i686-2.6/netCDF4.o -L/usr/local/lib -L/usr/local/lib -L/usr/lib/python2.6/config -Wl,-R/usr/local/lib -Wl,-R/usr/local/lib -lnetcdf -lhdf5_hl -lhdf5 -lz -lpython2.6 -o build/lib.cygwin-1.7.9-i686-2.6/netCDF4.dll" failed with exit status 1
-- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple