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

[netCDF #HWN-721444]: installing netcdf4

Hi Raul,

> I have zlib and HDF5 installed. Then, within the netcdf source file, I run:
> address@hidden:~/Downloads/netcdf-4.0$ LDFLAGS=-L/usr/local/lib
> CPPFLAGS=-I/usr/local/include ./configure --enable-netcdf-4 --enable-dap
> --enable-shared --prefix=/usr/local --with-hdf5=/usr/local
> --with-zlib=/usr/local
> which seems to finish normally. However, after running make I get:
> libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I../fortran -I../libsrc
> -I/usr/local/include -I/usr/local/include -I/usr/local/include -g -O2 -MT
> nc4hdf.lo -MD -MP -MF .deps/nc4hdf.Tpo -c nc4hdf.c -o nc4hdf.o >/dev/null
> 2>&1
> make[1]: *** No rule to make target `../libnc-dap/libnc-dap.la', needed by `
> libnetcdf.la'.  Stop.
> make[1]: Leaving directory `/home/raul/Downloads/netcdf-4.0/libsrc4'
> make: *** [check-recursive] Error 1
> address@hidden:~/Downloads/netcdf-4.0$

First, if you are trying to build netCDF version 4.0 (an old version from June 
from source, please start with a newer version, such as the current release of
netCDF-C, version 4.3.2. Many problems have been fixed since netCDF 4.0, 
bug, portability problems, and performance problems.

Also, if you can use a prebuilt version of netCDF for Ubuntu, you can get it 
Ubuntu package management sites and save yourself the trouble of building from

Otherwise, the instructions for building the netCDF-C library, either using 
or cmake, are here:


You can still use the HDF5 and zlib you have installed in /usr/local/, assuming
they are recent enough. If you have problems with a recent netCDF source
distribution, please send the config.log file produced by running configure
(or the output from running cmake), so we can diagnose the problem.



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

Ticket Details
Ticket ID: HWN-721444
Department: Support netCDF
Priority: Normal
Status: Closed

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.