Re: [netcdfgroup] Building netCDF on OS X 10.10

Hi Ken:

If I had to guess, from the installation instructions:

> After HDF5 is done, build netcdf, specifying the location of the HDF5, zlib, 
> and (if built into HDF5) the szip header files and libraries in the CPPFLAGS 
> and LDFLAGS environment variables.
> 
>      CPPFLAGS=-I/home/ed/local/include LDFLAGS=-L/home/ed/local/lib 
> ./configure --prefix=/home/ed/local
>      make check install
> 
> The configure script will try to find necessary tools in your path. When you 
> run configure you may optionally use the --prefix argument to change the 
> default installation directory. The above examples install the zlib, HDF5, 
> and netCDF-4 libraries in /home/ed/local/lib, the header file in 
> /home/ed/local/include, and the utilities in /home/ed/local/bin.
> 

Check that your CPPFLAGS and LDFLAGS are defined as needed before you do the 
configure and make.

HTH,

-Roy


On Feb 27, 2015, at 4:49 PM, Bowman, Kenneth P <k-bowman@xxxxxxxx> wrote:

> 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
> Voice 979-862-4060
> Fax 979-862-4466
> 
> http://atmo.tamu.edu/profile/KBowman
> 
> 
> 
> _______________________________________________
> netcdfgroup mailing list
> netcdfgroup@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe,  visit: 
> http://www.unidata.ucar.edu/mailing_lists/

**********************
"The contents of this message do not reflect any position of the U.S. 
Government or NOAA."
**********************
Roy Mendelssohn
Supervisory Operations Research Analyst
NOAA/NMFS
Environmental Research Division
Southwest Fisheries Science Center
***Note new address and phone***
110 Shaffer Road
Santa Cruz, CA 95060
Phone: (831)-420-3666
Fax: (831) 420-3980
e-mail: Roy.Mendelssohn@xxxxxxxx www: http://www.pfeg.noaa.gov/

"Old age and treachery will overcome youth and skill."
"From those who have been given much, much will be expected" 
"the arc of the moral universe is long, but it bends toward justice" -MLK Jr.



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