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

[netCDF #HDO-215554]: Build Netcdf 4.2 with pgf90 and gcc/gfortran build hdf5/zlib/curl

Hi Scott,

> Is it possible to build just the netcdf 4.2 fortran (77/90) libraries
> with pgf90 (we do not have the c/c++ compilers) using hdf5/zlib/curl
> libraries built with gcc/gfortran? What would the environment/configure
> script command line options look like?

Yes, we've tested that combination, and it works fine.  The netCDF software
makes no use of the HDF5 Fortran API, so it doesn't matter whether that was
even built, let alone what compiler was used.  We had some trouble building 
shared libraries, but the static libraries were pretty easy.

Here's a combination that worked for us (some of these flags may not be 
assuming you installed the HDF5 software in /share/ed/local/spock/:

 CFLAGS='-g -O2'
 CXXFLAGS='-g -O2' 

and configure like this:

 ./configure --disable-shared --enable-netcdf-4 
 make check install


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

Ticket Details
Ticket ID: HDO-215554
Department: Support netCDF
Priority: High
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.