This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
David, In your original question, you said you are trying to install netCDF-3.6.2 on Mac OS X. That doesn't require either zlib or HDF5, so I'm not sure why you are trying to install those. Similarly the more recent netCDF version 3.6.3 doesn't require either of those packages. NetCDF version 4.0 does require zlib and HDF5, but you don't necessarily need netCDF-4.0, especially if you are only installing netCDF because it is required by other software (e.g. GMT) or because you want to use it to look at current data archives that only use netCDF-3 files (e.g. most climate model output). If you only need netCDF-3, it is typically easier to install, because it doesn't require first installing other software packages. On Mac OS X, netCDF-3 is reported to install with Intel compilers using the following environment variable settings: CC="icc" FC="ifort" CFLAGS='-O3 -xN -ip -no-prec-div -static' FFLAGS='-O3 -xN -ip -no-prec-div -static' The icc compiler from Intel doesn't come with Mac OS X or XCode, it must be purchased from Intel and installed separately. However a free evaluation copy is available for download: http://www.intel.com/cd/software/products/asmo-na/eng/227389.htm Intel also has a web page with detailed instructions on building netCDF 3.6.2 on Mac OS X with Intel compilers: http://www.intel.com/support/performancetools/sb/CS-027812.htm If you are familiar with the "fink" package management system for Mac OS X, you can also use fink to download and install g95 and netCDF 3.6.2 without needing to compile them. See this report from a user: http://www.unidata.ucar.edu/mailing_lists/archives/netcdfgroup/2007-November/002552.html gcc does come with XCode, but as far as I know, no Fortran compiler comes with XCode, so you would need to get g95 or gfortran elsewhere, if you need the netCDF Fortran interface. However you can build netCDF without the Fortran or C++ interfaces if you don't need them. by using configure options --disable-f77, --disable-f90, or, --disable-cxx. All the above are for netCDF 3.6.2 or 3.6.3. If you really need netCDF 4.0 for some reason (for example you need variable compression, chunking, or the enhanced netCDF data model supported only in netCDF-4), we can provide more help, but I don't want to confuse the issue if you really only need netCDF-3. --Russ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: UFN-957034 Department: Support netCDF Priority: Normal Status: Closed