Re: [netcdfgroup] [thredds] Failure using configure of nccmp

Hi Carlos, John

nccmp built for me with the following:

export LDFLAGS="-L/my/netcdf/4.1.3/gnu-4.4.7/lib -L/my/hdf5/1.8.11/lib "; ./configure --prefix /my/nccmp/1.4.0; make; make check; make install

The NetCDF library above was built with the corresponding HDF5 library.

It also worked without any LDFLAGS plus
NetCDF 4.1.1 and  HDF5 1.8.5-patch1 installed from packages (via yum).
In both cases the computer is x86_64 Linux CentOS 6.4.

Somehow it failed with NetCDF 3.6.3 ( undefined reference to `nc_inq_dimids') and
4.3.0 (make check, segmentation fault).
I guess nccmp requires NetCDF-4.

'make check' only works if the PATH and LD_LIBRARY_PATH point to
the same NetCDF installation above.

I hope this helps,
Gus Correa

On 12/10/2013 01:16 PM, John Caron wrote:
Hi carlos, im forwarding this to

netcdfgroup@xxxxxxxxxxxxxxxx

which deals with the netcdf c library.

On 12/10/2013 10:25 AM, Carlos wrote:
Dear all,

I would like to install the nccmp program to compare netCDF files.

Checking the documentation, the installation follows the typical
structure:

./configure
make
make check
make install
make clean

However, I'm stuck in the first step because the configure is not able
to find my netCDF libraries. But I don't know why.

My libs are not in the default folder, I've installed them in /opt. But
I've included the path of the netCDF libs in my LD_LIBRARY_PATH variable.

I tried also to create a link in the default lib folder to my netCDF libs

ln /opt/netcdf-4.2.1.1/lib/libnetcdf.so /usr/lib/libnetcdf.so
ln /opt/netcdf-4.2.1.1/lib/libnetcdff.so /usr/lib/libnetcdff.so
ln /opt/netcdf-4.2.1.1/lib/libnetcdf.a /usr/lib/libnetcdf.a
ln /opt/netcdf-4.2.1.1/lib/libnetcdff.a /usr/lib/libnetcdff.a

But it doesn't work either. I explicitly used the path in the call

./configure --libdir=/opt/netCDF/

I set LIBS and LDFLAGS to

LDFLAGS=-L/opt/netcdf-4.2.1.1/lib/
LIBS=/opt/netcdf-4.2.1.1/lib/

and execute configure then, but with the same bad results:

checking for nc_open in -lnetcdf... no
configure: error: in `/opt/nccmp':
configure: error: Required NetCDF library not found!

In the config.log I see:

configure:3763: gcc -o conftest -g -O2 conftest.c -lnetcdf -lm >&5
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libnetcdf.a(libnetcdf4_la-nc4file.o):

In function nc4_rec_read_types':
/opt/NETCDF_BUILD/netcdf-4.2.1.1/libsrc4/nc4file.c:1850: undefined
reference toH5Gget_create_plist'

and many more similar lines like that one...

I don't know what else to try, so any help would be really appreciated.

Thanks.


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



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