[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #JMX-999814]: problems of installation of netcdf4.1.2



> I think I should explain some things. I install the last version of netcdf 
> 4.1.3 while I wait your responding.

Did you run "make check"?  
Did it pass all the tests? 
 
> It meet same problem as 4.1.2 . I use -lnetcdff in the compile command . OK 
> it find the nf_ functions, thank you for your help . But it can't find curl_ 
> functions . I need your help again.

Try running the command "nc-config --all" or "nc-config --libs" and look at the 
output for 
libraries you are missing on your link line when compiling.  You typically 
would need at
least "-lcurl" preceded by "-LCURL_LIB" where "CURL_LIB" is the path to the 
library directory
where libcurl is installed.

--Russ

> Following is the compile command and the error information:
> 
> 
> 
> [laps@hp-m570-micaps-server background]$ make
> pgf90 lga.f -I../../src/lib -Mnofree -byteswapio -i4 -Bstatic 
> -I../../src/include -I/usr/local/netcdf4.1.3/include -I../../src/lib 
> -I../../src/lib/modules -I../../src/lib/radar/synp -O2 -fastsse liblga.a 
> ../../src/lib/bgdata/libbgdata.a ../../src/lib/util/libutil.a 
> ../../src/lib/liblaps.a ../../src/lib/mthermo/libmthermo.a 
> ../../src/lib/modules/libmodules.a ../../src/lib/degrib/libdegrib.a 
> ../../src/lib/w3lib/libw3.a ../../src/lib/g2lib/libg2_4.a  \
> -L/usr/local/netcdf4.1.3/lib -lnetcdff -lnetcdf   -lgcc -ljasper -lpng -lz  
> -o lga.exe
> lga.f:
> /usr/local/lib/libjasper.a(jas_stream.o): In function `jas_stream_tmpfile':
> /home/laps0/software/jasper-1.900.1/src/libjasper/base/jas_stream.c:368: 
> warning: the use of `tmpnam' is dangerous, better use `mkstemp'
> /usr/local/netcdf4.1.3/lib/libnetcdf.a(liboc_la-ocinternal.o): In function 
> `ocinternalinitialize':
> /home/laps/software/last_version/netcdf-4.1.3/oc/ocinternal.c:142: undefined 
> reference to `curl_version_info'
> /usr/local/netcdf4.1.3/lib/libnetcdf.a(liboc_la-curlfunctions.o): In function 
> `ocset_ssl':
> /home/laps/software/last_version/netcdf-4.1.3/oc/curlfunctions.c:113: 
> undefined reference to `curl_easy_setopt'
> /home/laps/software/last_version/netcdf-4.1.3/oc/curlfunctions.c:116: 
> undefined reference to `curl_easy_setopt'
> /home/laps/software/last_version/netcdf-4.1.3/oc/curlfunctions.c:145: 
> undefined reference to `curl_easy_setopt'
> /home/laps/software/last_version/netcdf-4.1.3/oc/curlfunctions.c:124: 
> undefined reference to `curl_easy_setopt'
> /home/laps/software/last_version/netcdf-4.1.3/oc/curlfunctions.c:129: 
> undefined reference to `curl_easy_setopt'
> /usr/local/netcdf4.1.3/lib/libnetcdf.a(liboc_la-curlfunctions.o):/home/laps/software/last_version/netcdf-4.1.3/oc/curlfunctions.c:140:
>  more undefined references to `curl_easy_setopt' follow
> /usr/local/netcdf4.1.3/lib/libnetcdf.a(liboc_la-http.o): In function 
> `ocfetchhttpcode':
> /home/laps/software/last_version/netcdf-4.1.3/oc/http.c:27: undefined 
> reference to `curl_easy_getinfo'
> /usr/local/netcdf4.1.3/lib/libnetcdf.a(liboc_la-http.o): In function 
> `ocfetchlastmodified':
> /home/laps/software/last_version/netcdf-4.1.3/oc/http.c:261: undefined 
> reference to `curl_easy_setopt'
> /home/laps/software/last_version/netcdf-4.1.3/oc/http.c:266: undefined 
> reference to `curl_easy_setopt'
> /home/laps/software/last_version/netcdf-4.1.3/oc/http.c:267: undefined 
> reference to `curl_easy_setopt'
> /home/laps/software/last_version/netcdf-4.1.3/oc/http.c:268: undefined 
> reference to `curl_easy_setopt'
> /home/laps/software/last_version/netcdf-4.1.3/oc/http.c:269: undefined 
> reference to `curl_easy_setopt'
> /usr/local/netcdf4.1.3/lib/libnetcdf.a(liboc_la-http.o):/home/laps/software/last_version/netcdf-4.1.3/oc/http.c:270:
>  more undefined references to `curl_easy_setopt' follow
> /usr/local/netcdf4.1.3/lib/libnetcdf.a(liboc_la-http.o): In function 
> `ocfetchlastmodified':
> /home/laps/software/last_version/netcdf-4.1.3/oc/http.c:273: undefined 
> reference to `curl_easy_perform'
> /home/laps/software/last_version/netcdf-4.1.3/oc/http.c:282: undefined 
> reference to `curl_easy_strerror'
> /home/laps/software/last_version/netcdf-4.1.3/oc/http.c:276: undefined 
> reference to `curl_easy_getinfo'
> /usr/local/netcdf4.1.3/lib/libnetcdf.a(liboc_la-http.o): In function 
> `ocfetchurl_file':
> /home/laps/software/last_version/netcdf-4.1.3/oc/http.c:41: undefined 
> reference to `curl_easy_setopt'
> /home/laps/software/last_version/netcdf-4.1.3/oc/http.c:46: undefined 
> reference to `curl_easy_setopt'
> /home/laps/software/last_version/netcdf-4.1.3/oc/http.c:79: undefined 
> reference to `curl_easy_strerror'
> /home/laps/software/last_version/netcdf-4.1.3/oc/http.c:51: undefined 
> reference to `curl_easy_setopt'
> /home/laps/software/last_version/netcdf-4.1.3/oc/http.c:56: undefined 
> reference to `curl_easy_setopt'
> /home/laps/software/last_version/netcdf-4.1.3/oc/http.c:60: undefined 
> reference to `curl_easy_perform'
> /home/laps/software/last_version/netcdf-4.1.3/oc/http.c:74: undefined 
> reference to `curl_easy_getinfo'
> /usr/local/netcdf4.1.3/lib/libnetcdf.a(liboc_la-http.o): In function 
> `occurlopen':
> /home/laps/software/last_version/netcdf-4.1.3/oc/http.c:230: undefined 
> reference to `curl_easy_init'
> /home/laps/software/last_version/netcdf-4.1.3/oc/http.c:234: undefined 
> reference to `curl_easy_setopt'
> /home/laps/software/last_version/netcdf-4.1.3/oc/http.c:238: undefined 
> reference to `curl_easy_setopt'
> /usr/local/netcdf4.1.3/lib/libnetcdf.a(liboc_la-http.o): In function 
> `ocfetchurl':
> /home/laps/software/last_version/netcdf-4.1.3/oc/http.c:91: undefined 
> reference to `curl_easy_setopt'
> /home/laps/software/last_version/netcdf-4.1.3/oc/http.c:96: undefined 
> reference to `curl_easy_setopt'
> /home/laps/software/last_version/netcdf-4.1.3/oc/http.c:133: undefined 
> reference to `curl_easy_strerror'
> /home/laps/software/last_version/netcdf-4.1.3/oc/http.c:101: undefined 
> reference to `curl_easy_setopt'
> /home/laps/software/last_version/netcdf-4.1.3/oc/http.c:106: undefined 
> reference to `curl_easy_setopt'
> /home/laps/software/last_version/netcdf-4.1.3/oc/http.c:108: undefined 
> reference to `curl_easy_perform'
> /home/laps/software/last_version/netcdf-4.1.3/oc/http.c:119: undefined 
> reference to `curl_easy_getinfo'
> /home/laps/software/last_version/netcdf-4.1.3/oc/http.c:111: undefined 
> reference to `curl_easy_strerror'
> /usr/local/netcdf4.1.3/lib/libnetcdf.a(liboc_la-http.o): In function 
> `occurlclose':
> /home/laps/software/last_version/netcdf-4.1.3/oc/http.c:251: undefined 
> reference to `curl_easy_cleanup'
> make: *** [lga.exe] error 2
> 
> 
> 
> 
> 
> ------------------------------------------------------------------
> ????Unidata netCDF Support<address@hidden>
> ?????2012?05?11? 06:25
> ????address@hidden;
> ????address@hidden;
> ???[netCDF #JMX-999814]: problems of installation of netcdf4.1.2
> Hi,
> 
> Sorry it has taken so long to respond to your question ...
> > I have installed netcdf4.1.2. But it does not find the functions with 
> > prefix nf_
> > when  I compile LAPS-0-46-1 software which from NOAA/ESRL/GSD. I check the
> > compile process of LAPS, confirm it is correct. I think maybe netcdf is not
> > correctly installed. I run "make check" after make it and find some errors. 
> > But
> > I don't known how to solve it. Could you give some suggestions to me?
> > The attachment is the output of "make check"
> 
> The 2 errors you see from "make check":
> 
> > *** Test: varm on URL: 
> > http://motherlode.ucar.edu:8080/thredds/dodsC/testdods/coads_climatology.nc
> > FAIL: test_varm3
> > Error: NetCDF: I/O failure
> > FAIL: test_vara
> > ================================================
> > 2 of 5 tests failed
> 
> are probably the result of a failure of the test server at 
> motherlode.ucar.edu:8080,
> which was moved to port 8081, rather than the netCDF library.  If you would 
> run
> "make clean", rerun the netCDF configure script with the option
> "--disable-fortran-compiler-check", and then run "make check", the tests 
> might all
> succeed.  So netCDF may be correctly installed.
> 
> Not finding functions with prefix nf_ might be caused by several possible 
> problems:
> 
> 1.  If the Fortran library was installed as a separate library, perhaps 
> because
> both C and Fortran libraries were installed as shared libraries, you would
> need to link with both
> 
> ... -lnetcdff -lnetcdf
> 
> instead of just
> 
> ... -lnetcdf
> 
> 2.  If the netCDF Fortran library were built with a different Fortran compiler
> than the Fortran compiler you are trying to link with, the nf_ functions
> might not be found, if the compilers use different conventions for calling
> C functions from Fortran.
> 
> 3.  If the 4.1.2 library were compiled without Fortran support because the
> configure script could not locate a working Fortran compiler or because
> --disable-fortran was specified as a configure option, that might be the
> cause of the problem.
> 
> We would need more information to be able to distinguish among these or other
> possible sources for the problem.  For example, the complete output of the
> library build, including config.log, output of configure, and output from
> "make check" might help.
> 
> --Russ
> 
> 
> 
> 
> Russ Rew                                         UCAR Unidata Program
> address@hidden                      http://www.unidata.ucar.edu
> 
> 
> 
> Ticket Details
> ===================
> Ticket ID: JMX-999814
> Department: Support netCDF
> Priority: Normal
> Status: Closed
> 
> 

Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: JMX-999814
Department: Support netCDF
Priority: High
Status: Closed