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

[netCDF #ENG-687406]: can't install netcdf on os x mavericks



Hi Grace,

> I'm trying to install NetCDF on a MBP running
> OS X Mavericks.  10.9.4
> 
> I run tcsh and am installing netcdf in
> /usr/local/netcdf-4.3.2
> 
> I am following the quick directions in
> http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-install/Quick-Instructions.html#Quick-Instructions
> 
> I installed
> zlib-1.2.8 and
> hdf5-1.8.9 successfully following the directions,
> substituting /usr/local for /home/ed/local
> 
> The builds finished w/o errors and
> populated /usr/local/lib and
> /usr/local/include.
> 
> CPPFLAGS=-I/home/ed/local/include LDFLAGS=-L/home/ed/local/lib
> ./configure --prefix=/home/ed/local
> 
> failed, so I tried
> 
> setenv CPPFLAGS /usr/local/include
> 
> setenv LDFLAGS /usr/local/lib


Try instead

  setenv CPPFLAGS -I/usr/local/include
  setenv LDFLAGS  -L/usr/local/lib

That should work, followed by "make check" and "sudo make install".

--Russ

> and then
> 
> 
> ./configure --prefix=/usr/local
> 
> 
> That failed w/ the same error msgs.
> 
> "configure: error: Can't find or link to the hdf5 library. Use
> --disable-netcdf-4, or see config.log for errors."
> 
> 
> I'm attaching my config.log
> 
> How do I "find" the hdf5 library?
> 
> What am I doing wrong?
> 
> 
> 
> Grace
> 
> 
> 
> --
> Grace Peng, PhD
> Atmospheric & Geoscience Research Data Archive
> Computational & Information Systems Laboratory
> National Center for Atmospheric Research
> 303-497-1218
> 
> 

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



Ticket Details
===================
Ticket ID: ENG-687406
Department: Support netCDF
Priority: Normal
Status: Closed