NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: [netcdfgroup] Difficulties building ncks-4.0.1 and cdo-1.4.4 against netCDF-4.1.1

  • To: dpierce@xxxxxxxx
  • Subject: Re: [netcdfgroup] Difficulties building ncks-4.0.1 and cdo-1.4.4 against netCDF-4.1.1
  • From: Jennifer Adams <jma@xxxxxxxxxxxxx>
  • Date: Mon, 24 May 2010 14:39:10 -0400
Here are the environment variables I had to set, the configure command I used, and one additional change to the nco config.h file to get it to compile on CentOS 64bit (gcc 4.1.2). I should add that some of these commands are tailored to the way I built hdf5 and netcdf4. It seems so kludgey, but it worked. I haven't tried with nco-4.0.1.

setenv CPPFLAGS -I/path_to_netcdf-4.1.1/include
setenv NETCDF4_ROOT /path_to_netcdf-4.1.1
setenv HDF5_LIB_DIR /path_to_hdf5-1.8.4-patch1
setenv LIBS "-L/path_to_netcdf-4.1.1-rc2/lib -lnetcdf \
-L/path_to_hdf5-1.8.4-patch1/lib -lhdf5_hl -lhdf5 \
-L/path_to_zlib/lib -lz -lm \
/path_to_szip-2.1/lib/libsz.a \
/path_to_curl-7.19.6/lib/libcurl.a \
-lrt -lz"

./configure --prefix=/path_to_nco-4.0.0 --enable-netcdf4 --disable- shared --enable-static

Also added:
#define HAVE_NETCDF4_H 1
to config.h

I hope this helps!
--Jennifer



On May 24, 2010, at 2:22 PM, David Pierce wrote:

Hi Gary,

I ran into the multiple definitions problem as well. Not wanting to spend time messing with it, I simply commented out the redundant definitions in
the nco source code (the make error messages show the file and line
numbers) and that worked.   This is on a Ubundu 8.04 LTS x64 system.

Regards,

--Dave


Gary Strand wrote:

I'm having significant problems getting nco-4.0.1 and cdo-1.4.4 to
build against netCDF-4.1.1/hdf5-1.8.4patch1 on a reasonably generic
Linux 64-bit system.

'nco' reports many multiple definitions during 'make'; 'cdo' fails on
'configure' because it can't find 'nc_open'.

Does anyone have any hints/suggestions as to get past these problems?

Thanks!

Gary Strand
strandwg@xxxxxxxx



_______________________________________________
netcdfgroup mailing list
netcdfgroup@xxxxxxxxxxxxxxxx
For list information or to unsubscribe,  visit:
http://www.unidata.ucar.edu/mailing_lists/




-------------------------------------------------------------------
David W. Pierce
Division of Climate, Atmospheric Science, and Physical Oceanography
Scripps Institution of Oceanography
(858) 534-8276 (voice)  /  (858) 534-8561 (fax)    dpierce@xxxxxxxx
-------------------------------------------------------------------


_______________________________________________
netcdfgroup mailing list
netcdfgroup@xxxxxxxxxxxxxxxx
For list information or to unsubscribe,  visit: 
http://www.unidata.ucar.edu/mailing_lists/

--
Jennifer M. Adams
IGES/COLA
4041 Powder Mill Road, Suite 302
Calverton, MD 20705
jma@xxxxxxxxxxxxx



  • 2010 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: