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

[netCDF #NZA-172884]: netcdf-3.6.2 for Darwin



Steven,

The way to specify particular flags to the C compiler for the configure script
is through
the environment variable CFLAGS, which you define in different ways depending
on which
command shell you are using.  For example, if you are using sh, bash, or ksh,
you could do
it this way

  CFLAGS=-DNAGf90Fortran ./configure -prefix=/xhome/snelli/NetCDFlibrary

and with csh or tcsh, you would instead use

  setenv CFLAGS DNAGf90Fortran
  ./configure -prefix=/xhome/snelli/NetCDFlibrary

That may be enough, if that works to successfully run configure.  Then you
would just run
"make check install" to compile, test, and install netCDF.  Another user had
success with
an earlier version of netCDF (which required setting more environment variables
than the
currently smarter configure) on MacOSX using a NAG Fortran compiler and
described how he
did it here:

  
http://www.unidata.ucar.edu/software/netcdf/docs/other-builds.html#macosx-nagf95

which may help if you encounter other problems.  We don't have a NAG Fortran
compiler
installed here to test this development environment, so may have trouble
reproducing
problems ...

--Russ



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



Ticket Details
===================
Ticket ID: NZA-172884
Department: Support netCDF
Priority: Normal
Status: Closed