NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Hi John: I notice you are using HDF-1.8.5. A few days ago I emailed the list about that, and Ed replied that at the moment they do not work with HDF-1.8.5 (i can't find the email but look at the archives). You need to use the version of HDF 1.8.4 that is on the netcdf ftp site. I have been able to compile that with: 1. the gcc and gfortran from fink 2. the gcc from apple and the gfortran from R at: http://r.research.att.com/tools/ - make certain you scroll down and get the gfortran for Snwo Leopard, not the one at the top of the page. HTH, -Roy > Greetings. > > I am struggling to compile netcdf-4.1.1 on OSX 10.6.4 with hdf5 and fortran > so I can build Dave Pierce's new ncview. I have worked my way through some > earlier problems and have come to this script: > > #!/bin/bash > > > make distclean > > > #export LDFLAGS="-L/usr/local/hdf5-1.8.5-macosx32-static" > > > export CC=/usr/bin/cc > > > export CFLAGS='-m32' > > > #export CPPFLAGS=-Df2cFortran > > > export F77=gfortran > > > export FC=gfortran > > > export FCFLAGS=-qsuffix=cpp=f90 > > > ./configure --prefix=/usr/local/netcdf-4.1.1 --enable-netcdf-4 --enable-f90 > --with-hdf5=/usr/local/hdf5-1.8.5-macosx32-static > > # > > > #export LDFLAGS="-L/usr/local/hdf5-1.8.5-macosx64-static" > > > #./configure --prefix=/usr/local/netcdf-4.1.1 --enable-netcdf-4 --enable-f90 > --with-hdf5=/usr/local/hdf5-1.8.5-macosx64-static > > > This got me past some earlier problems with 32-bit fortran libraries (I > think) but now I'm getting complaints about the hdf5 libraries even though > they seem to be found for some things. > > checking for manual-page index command... > checking hdf5.h usability... yes > checking hdf5.h presence... yes > checking for hdf5.h... yes > checking whether we should try to build netCDF-4... yes > checking for H5Fflush in -lhdf5... no > configure: error: Can't find or link to the hdf5 library. Configure with > --disable-netcdf-4 or see config.log for errors. > > > I'm attaching the config.log for those who might care to look. In the script > above, you can see that I experimented with defining the LDFLAGS and this > solved the problem of the missing -lhdf5 but introduced a bunch of other even > stranger problems that made me think I was overriding some more basic library > paths by specifying LDFLAGS. Anyway, I couldn't figure out what those > problems were so I backed up to this in hoping that someone out there would > have a suggestion. > > Any help would be appreciated. > > Cheers. > -------------- > John Helly, UCSD / San Diego Supercomputer Center / Scripps Institution of > Oceanography, Climate, Atmospheric Science, and Physical Oceanography / +01 > 760 840 8660 mobile / stonesteps (Skype) / stonesteps7 (iChat) / > /www.sdsc.edu/~hellyj > <config.log> > > _______________________________________________ > 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 1352 Lighthouse Avenue Pacific Grove, CA 93950-2097 e-mail: Roy.Mendelssohn@xxxxxxxx (Note new e-mail address) voice: (831)-648-9029 fax: (831)-648-8440 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"
netcdfgroup
archives: