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

[netCDF #DKO-663345]: libnetcdf.mod not built with NetCDF 4.2



Dan,

> I built the netcdf-fortran-4.2 package as instructed, disabling shared 
> libraries.  The Fortran libraries passed "make check" and installed without 
> error, but libnetcdf.mod is not present (only netcdf.mod).  I used the 
> following environment variables:
> 
> LD_LIBRARY_PATH=/curc/tools/x_86_64/rh5/openmpi/1.4.5/intel/12.1.4/torque/2.5.11/openmpi-1.4.5_intel-12.1.4_torque-2.5.11/lib:/curc/tools/nonfree/redhat_5_x86_64/intel-12.1.4/composer_xe_2011_sp1.10.319/compiler/lib/intel64
> CC=/curc/tools/x_86_64/rh5/openmpi/1.4.5/intel/12.1.4/torque/2.5.11/openmpi-1.4.5_intel-12.1.4_torque-2.5.11/bin/mpicc
> FC=/curc/tools/x_86_64/rh5/openmpi/1.4.5/intel/12.1.4/torque/2.5.11/openmpi-1.4.5_intel-12.1.4_torque-2.5.11/bin/mpif90
> F90=/curc/tools/x_86_64/rh5/openmpi/1.4.5/intel/12.1.4/torque/2.5.11/openmpi-1.4.5_intel-12.1.4_torque-2.5.11/bin/mpif90
> CXX=/curc/tools/x_86_64/rh5/openmpi/1.4.5/intel/12.1.4/torque/2.5.11/openmpi-1.4.5_intel-12.1.4_torque-2.5.11/bin/mpic++
> MPICXX=/curc/tools/x_86_64/rh5/openmpi/1.4.5/intel/12.1.4/torque/2.5.11/openmpi-1.4.5_intel-12.1.4_torque-2.5.11/bin/mpic++
> MPICC=/curc/tools/x_86_64/rh5/openmpi/1.4.5/intel/12.1.4/torque/2.5.11/openmpi-1.4.5_intel-12.1.4_torque-2.5.11/bin/mpicc
> MPIF77=/curc/tools/x_86_64/rh5/openmpi/1.4.5/intel/12.1.4/torque/2.5.11/openmpi-1.4.5_intel-12.1.4_torque-2.5.11/bin/mpif77
> MPIF90=/curc/tools/x_86_64/rh5/openmpi/1.4.5/intel/12.1.4/torque/2.5.11/openmpi-1.4.5_intel-12.1.4_torque-2.5.11/bin/mpif90
> LDFLAGS="-L/curc/tools/x_86_64/rh5/netcdf/4.2/hdf5/1.8.9/openmpi/1.4.5/intel/12.1.4/torque/2.5.11/netcdf-4.2_hdf5-1.8.9_openmpi-1.4.5_intel-12.1.4_torque-2.5.11/lib
>  
> -L/curc/tools/x_86_64/rh5/hdf5/1.8.9/openmpi/1.4.5/intel/12.1.4/torque/2.5.11/hdf5-1.8.9_openmpi-1.4.5_intel-12.1.4_torque-2.5.11/lib
>  -L/curc/tools/free/redhat_5_x86_64/zlib-1.2.5/lib"
> LIBS=" -lnetcdf -lhdf5_hl -lhdf5 -lz "
> CPPFLAGS="-DpgiFortran 
> -I/curc/tools/x_86_64/rh5/netcdf/4.2/hdf5/1.8.9/openmpi/1.4.5/intel/12.1.4/torque/2.5.11/netcdf-4.2_hdf5-1.8.9_openmpi-1.4.5_intel-12.1.4_torque-2.5.11/include
>  
> -I/curc/tools/x_86_64/rh5/hdf5/1.8.9/openmpi/1.4.5/intel/12.1.4/torque/2.5.11/hdf5-1.8.9_openmpi-1.4.5_intel-12.1.4_torque-2.5.11/include
>  -I/curc/tools/free/redhat_5_x86_64/zlib-1.2.5/lib"

Sorry, I thought your reference to "libnetcdf.mod" was really
referring to "netcdf.mod", the Fortran module file installed by the
Fortran build.  As far as I know, there is no "libnetcdf.mod"
installed by netCDF.  We have no such file on our platforms on which
we test and install daily.  The user who reported the missing
"libnetcdf.mod" file may have been confusing the library files
libnetcdf.a and libnetcdf.so*, installed in the lib/ directory,
with the netcdf.mod file, installed in the include/ directory.

--Russ

> -----Original Message-----
> From: Unidata netCDF Support [mailto:address@hidden]
> Sent: Thursday, August 16, 2012 12:31 PM
> To: Daniel Milroy
> Cc: address@hidden
> Subject: [netCDF #DKO-663345]: libnetcdf.mod not built with NetCDF 4.2
> 
> Hi Dan,
> 
> > I've built NetCDF 4.2 with the C, C++ and Fortran libraries on CU Boulder's 
> > Janus supercomputer.  We received a user ticket requesting an explanation 
> > for the absence of libnetcdf.mod.  I have verified that it was not built.  
> > Is libnetcdf.mod necessary to run NetCDF?
> 
> The netcdf.mod file is only needed to use the netCDF Fortran-90 API, which is 
> part of the separate netcdf-fortran-4.2 software release, available from:
> 
> http://www.unidata.ucar.edu/downloads/netcdf/netcdf-fortran/
> 
> The netCDF Fortran release was separated from the netCDF-C release with 
> version 4.2, as explained here:
> 
> http://www.unidata.ucar.edu/mailing_lists/archives/netcdfgroup/2011/msg00370.html
> 
> The Fortran release is pretty easy to build once the C library is installed, 
> as explained here:
> 
> http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-fortran-install.html
> 
> --Russ
> 
> 
> Russ Rew                                         UCAR Unidata Program
> address@hidden                      http://www.unidata.ucar.edu
> 
> 
> 
> Ticket Details
> ===================
> Ticket ID: DKO-663345
> Department: Support netCDF
> Priority: Normal
> Status: Closed
> 
> 

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



Ticket Details
===================
Ticket ID: DKO-663345
Department: Support netCDF
Priority: Normal
Status: Closed