[netcdfgroup] Building netCDF on OS X 10.10

I am trying to build netCDF with netCDF-4 support on OS X 10.10 (Yosemite).

I successfully built zlib and HDF5 (I think) with --prefix=/usr/local.

When I try to build netCDF with --prefix=/usr/local I get the following error

advect> ./configure --prefix=/usr/local
configure: netCDF 4.3.3.1
checking build system type... x86_64-apple-darwin14.1.0
checking host system type... x86_64-apple-darwin14.1.0
checking target system type... x86_64-apple-darwin14.1.0
 .
 .
 .
checking for library containing H5Fflush... no
configure: error: Can't find or link to the hdf5 library. Use 
--disable-netcdf-4, or see config.log for errors.

It looks to me like the HDF libraries are in /usr/local

advect> ll /usr/local/lib
total 14640
-rwxr-xr-x  1 root  wheel  2525216 Feb 27 18:23 libhdf5.9.dylib*
-rw-r--r--  1 root  wheel  4444424 Feb 27 18:23 libhdf5.a
lrwxr-xr-x  1 root  wheel       15 Feb 27 18:23 libhdf5.dylib@ -> 
libhdf5.9.dylib
-rwxr-xr-x  1 root  wheel      940 Feb 27 18:23 libhdf5.la*
-rw-r--r--  1 root  wheel     2067 Feb 27 18:23 libhdf5.settings
-rwxr-xr-x  1 root  wheel   118908 Feb 27 18:23 libhdf5_hl.9.dylib*
-rw-r--r--  1 root  wheel   164272 Feb 27 18:23 libhdf5_hl.a
lrwxr-xr-x  1 root  wheel       18 Feb 27 18:23 libhdf5_hl.dylib@ -> 
libhdf5_hl.9.dylib
-rwxr-xr-x  1 root  wheel      984 Feb 27 18:23 libhdf5_hl.la*
-rwxr-xr-x  1 root  wheel    88244 Feb 27 16:46 libz.1.2.8.dylib*
lrwxr-xr-x  1 root  wheel       16 Feb 27 16:46 libz.1.dylib@ -> 
libz.1.2.8.dylib
-rw-r--r--  1 root  wheel   109536 Feb 27 16:46 libz.a
lrwxr-xr-x  1 root  wheel       16 Feb 27 16:46 libz.dylib@ -> libz.1.2.8.dylib
drwxr-xr-x  3 root  wheel      102 Feb 27 16:46 pkgconfig/

And netCDF will build successfuly if I use --disable_netcdf-4.

-rwxr-xr-x  1 root  wheel  1086716 Feb 27 18:38 libnetcdf.7.dylib*
-rw-r--r--  1 root  wheel  3309160 Feb 27 18:38 libnetcdf.a
lrwxr-xr-x  1 root  wheel       17 Feb 27 18:38 libnetcdf.dylib@ -> 
libnetcdf.7.dylib
-rwxr-xr-x  1 root  wheel      961 Feb 27 18:38 libnetcdf.la*
-rw-r--r--  1 root  wheel      717 Feb 27 18:38 libnetcdf.settings

Any suggestions?

Thanks, Ken Bowman


____________________________________________________________________________
Kenneth P. Bowman
David Bullock Harris Professor of Geosciences
Department of Atmospheric Sciences
Texas A&M University
3150 TAMU
College Station, TX   77843-3150

k-bowman@xxxxxxxx<mailto:k-bowman@xxxxxxxx>
Voice 979-862-4060
Fax 979-862-4466

http://atmo.tamu.edu/profile/KBowman



  • 2015 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: