NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
You need do use those arguments when compiling your code such as: *gfortran -I/usr/local/include -L/usr/local//lib -lnetcdff yourprogram.f90 * Ekin Akoglu Institute of Marine Sciences Middle East Technical University P.O. Box 28, 33731 Erdemli, Mersin Turkey Web: www.ims.metu.edu.tr Email: ekin@xxxxxxxxxxxxxxx Phone: +90 324 521 34 34 GSM: +90 506 554 03 90 On Wed, Aug 7, 2013 at 7:02 AM, Syed Ahsan Ali Bokhari <ahsan.pmd@xxxxxxxxx>wrote: > Got that I have installed fortran libraries too and problem in solved but > the installation of fortran library says > > *Now you will only need to use something like* > > * -L${DIR1}/lib -lnetcdff* > > *to link Fortran software with the installed netCDF Fortran and C > libraries. > * > > This point is not clear to me. where to give this command > > > > On Tue, Aug 6, 2013 at 2:31 PM, Syed Ahsan Ali Bokhari < > ahsan.pmd@xxxxxxxxx> wrote: > >> >> Dear All I have install netcdf4.2.1.1 using following commands >> CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/li >> b ./configure --prefix=/usr/local/ >> >> make check install >> >> netcdf is successfuly installed when I try to compile an applicatiion it >> gives error of netcdf-fortran library not being found. >> >> configure: checking for NetCDF... >> configure: checking for netcdf.h... >> checking netcdf.h usability... yes >> checking netcdf.h presence... yes >> checking for netcdf.h... yes >> configure: checking for libnetcdf.a... >> checking for nc_close in -lnetcdf... yes >> configure: checking for libnetcdff.a... >> checking for nf_close in -lnetcdf... no >> configure: checking for libnetcdff.a... >> checking for nf_close in -lnetcdff... yes >> configure: checking for NetCDF module file... >> configure: error: NetCDF module not found >> [root@r720 RegCM-4.3.5.6]# CPPFLAGS=-I/usr/local/include >> LDFLAGS=-L/usr/local/li >> b ./configure --prefix=/usr/local/ >> >> How can I make netcdf fortran library? >> Thanks >> Ahsan >> >> - >> > > > > -- > Engr. Syed Ahsan Ali Bokhari > Electronic Engineer (EE) > Research & Development Division > Pakistan Meteorological Department H-8/2, Islamabad. > Phone # off +92519250361 > Cell # +923155145014 > www.pmd.gov.pk > > _______________________________________________ > netcdfgroup mailing list > netcdfgroup@xxxxxxxxxxxxxxxx > For list information or to unsubscribe, visit: > http://www.unidata.ucar.edu/mailing_lists/ >
netcdfgroup
archives: