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

[netCDF #XWI-819189]: cannot build netcdf on apple snow-leopard

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.


  • Subject: [netCDF #XWI-819189]: cannot build netcdf on apple snow-leopard
  • Date: Mon, 30 Nov 2009 13:48:29 -0700

Dan-
The big problem on snow leopard is with mixing 64bit and 32 bit
binaries for fortran. It turns out that g95 produces only
32 bit binaries, and cc produced (by default) 64 bit binaries.
There are three solutions:
1. don't use fortran (as you describe in your message)
2. use gfortran and not g95; I am told that gfortran
   produces 64 bit binaries.
3. force cc to produce 32 bit binaries using the -m32 flag.
   Unfortunately, you also have to ensure that you are
   using 32 bit binaries for e.g. hdf5, curl, zlib, etc.

=Dennis Heimbigner


Ticket Details
===================
Ticket ID: XWI-819189
Department: Support netCDF
Priority: Normal
Status: Open