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

[netCDF #SEL-204074]: NetCDF-4


> I attached here the pdf with the instructions I used to build netcdf and
> the config.log
> I don't understand because all seems to be built ok and now this is not
> giving me the desire libraries.

I think I see the problem.  When you configure the Fortran libraries,
you don't need to specify all those library paths in LDFLAGS, because
you apparently built the netCDF C library as a shared library, which 
means all you have to specify is where to find that C library:




as well as the definition you already have for 


before your configure command.  You could simplify this a bit by defining those 
long paths 
in environment variables used to define the other variables, as in

  $ NFDIR=/data/users/carlos/shares/apps/gfortran/gcc4.7.2/netcdf-fortran/4.4.1
  $ CPPFLAGS=-I${NCDIR}/include  LDFLAGS=-L${NCDIR}/lib  
LD_LIBRARY_PATH=${NCDIR}/lib ./configure --prefix=${NFDIR}


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

Ticket Details
Ticket ID: SEL-204074
Department: Support netCDF
Priority: Normal
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.