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

Re: 20041111:Reporting problems to install netCDF



>To: address@hidden
>From: <address@hidden>
>Subject: Reporting problems to install netCDF 
>Organization: UCAR/Unidata
>Keywords: 200411110755.iAB7sx7j020352

Hi MeeHyun Jo,

> I'm trying to install the netCDF on a Linux system.
> 
> I have tried to set environment variables such as CPPFLAGS, FC, etc. as 
> recommended in the INSTALL file. 
> 
> But I have failed all of the tries. 
> 
> So I'm reporting the problems below. 
> 
> Although I have tried all of the methods, finally I failed. 
> 
> Could you give me a clue to resolve the problems. 

The error you are seeing is in the C++ interface.  If you are only
going to use netCDF from C or from Fortran programs, you could specify
that the C++ interface should not be built by setting the environment
variable CXX to '' before running the "configure" script.  This tells
the configure script to not even look for a C++ compiler and to not
compile and install the C++ library.  It looks like the C and Fortran
libraries compiled for you with no problems, so that will work unless
you need the C++ interface.

If you really need to use the C++ interface, you should use a newer
version of netCDF, and you may want to do that anyway, because the
version 3.4 you are using was released in March 1998, only works with
older non-standard C++ compilers, and has some bugs that have been
fixed in later versions.  For example, version 3.5.1 was released in
February 2004, and has updated the C++ interface to work better with
the C++ standards and new C++ compilers:

  ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-3.5.1.tar.Z

Or you could get the new 3.6.0-beta release from October 2004 and use
it:

  ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-3_6_0-beta6.tar.gz

Also, you don't have to compile netCDF from source to get the
library.  You could download and install a binary (compiled) version
of the library from various Linux archives, either in RPM form (for
RedHat and similar systems) or in dpkg form (for Debian and similar
systems), for example search for "netcdf" at:

  http://rpm.pbone.net/

--Russ