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

[netCDF #ZBZ-885882]: netcdf.inc



Yuanfu,

> I read the directions from your link. Here is a recommendation. Please modify 
> the LDFLAGS to
> CPPFLAGS=-I{DIR1}/include LD_LIBRARY_PATH={DIR1}/lib LDFLAGS="-L{DIR1}/lib 
> -lnetcdf" ./configure --prefix={DIR1}
> At least on my mac, the missing of -L option caused failure of the configure 
> script. Thanks.

I think it would have worked if you used "DYLD_LIBRARY_PATH" instead of 
"LD_LIBRARY_PATH" on OSX.
The original works fine on systems that use "LD_LIBRARY_PATH" to specify where 
shared libraries 
are installed.

I've updated the documentation to mention the need for "DYLD_LIBRARY_PATH" when 
using OSX:

  http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-fortran-install.html

Please let me know if that doesn't work for you, and thanks for reporting the 
problem!

--Russ

> On Nov 7, 2012, at 8:58 AM, Unidata netCDF Support wrote:
> 
> > Hi Yuanfu,
> >
> >> I downloaded the netcdf-4.2.1.1 however there is no netcdf.inc. Would
> >> you know what is the problem?
> >
> > Yes, netCDF-4.2.1.1 is only the netCDF C library, which you need to build
> > and install before building and installing the Fortran netCDF library.  The
> > Fortran library was separated from the C library in netCDF 4.2 and later
> > versions.
> >
> > Here are the directions for building and installing the netCDF Fortran 
> > library,
> > which includes netcdf-inc:
> >
> >  
> > 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: ZBZ-885882
> > Department: Support netCDF
> > Priority: Normal
> > Status: Closed
> >
> 
> 
Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: ZBZ-885882
Department: Support netCDF
Priority: Normal
Status: Closed