This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
It looks like you do not have libcurl installed, or at least are not referencing it in CPPFLAGS and LDFLAGS. > I am now trying to install netcdf 4.6 on RedHat5.5 x86_64 ,but I get the > following error message during make.I cannot find why it happened ,many > thanks! > > > ------------------ > > > [root@localhost netcdf-4.6.0]# ./configure --disable-netcdf-4 > this step is ok > ...... > > > [root@localhost netcdf-4.6.0]# make > this step error occurs > make all-recursive > make[1]: Entering directory `/soft/netcdf-4.6.0' > Making all in include > make[2]: Entering directory `/soft/netcdf-4.6.0/include' > make[2]: Nothing to be done for `all'. > make[2]: Leaving directory `/soft/netcdf-4.6.0/include' > Making all in libdispatch > make[2]: Entering directory `/soft/netcdf-4.6.0/libdispatch' > make[2]: Nothing to be done for `all'. > make[2]: Leaving directory `/soft/netcdf-4.6.0/libdispatch' > Making all in libsrc > make[2]: Entering directory `/soft/netcdf-4.6.0/libsrc' > make[2]: Nothing to be done for `all'. > make[2]: Leaving directory `/soft/netcdf-4.6.0/libsrc' > Making all in oc2 > make[2]: Entering directory `/soft/netcdf-4.6.0/oc2' > /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. > -I.. -I.. -I../include -MT liboc_la-occurlfunctions.lo -MD -MP -MF > .deps/liboc_la-occurlfunctions.Tpo -c -o liboc_la-occurlfunctions.lo `test -f > 'occurlfunctions.c' || echo './'`occurlfunctions.c > libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -I../include -MT > liboc_la-occurlfunctions.lo -MD -MP -MF .deps/liboc_la-occurlfunctions.Tpo -c > occurlfunctions.c -fPIC -DPIC -o .libs/liboc_la-occurlfunctions.o > occurlfunctions.c: In function ocset_curlflag: > occurlfunctions.c:65: error: CURLOPT_USERNAME undeclared (first use in this > function) error > occurlfunctions.c:65: error: (Each undeclared identifier is reported only once > occurlfunctions.c:65: error: for each function it appears in.) > occurlfunctions.c:66: error: CURLOPT_PASSWORD undeclared (first use in this > function) > occurlfunctions.c:126: error: CURLOPT_PROXYUSERNAME undeclared (first use in > this function) > occurlfunctions.c:127: error: CURLOPT_PROXYPASSWORD undeclared (first use in > this function) > occurlfunctions.c:135: error: CURLOPT_USE_SSL undeclared (first use in this > function) > occurlfunctions.c: In function ocset_flags_perlink: > occurlfunctions.c:193: error: CURLOPT_USE_SSL undeclared (first use in this > function) > make[2]: *** [liboc_la-occurlfunctions.lo] Error 1 > make[2]: Leaving directory `/soft/netcdf-4.6.0/oc2' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/soft/netcdf-4.6.0' > make: *** [all] Error 2 > [root@localhost netcdf-4.6.0]# > > > > > > > > > > > > ------------------ > --------------------------------------- > JiXiang Guan > ?address@hidden > --------------------------------------- =Dennis Heimbigner Unidata Ticket Details =================== Ticket ID: TXE-322873 Department: Support netCDF Priority: Normal Status: Open =================== NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.