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

[netCDF #BXR-962926]: Installing NetCDF library with HDF4 support



Sorry for the delay.
The first thing to do is to locate mfhdf.h.
Can you see if it actually exists in ${H4DIR}/include?
If not, see if you can find where it is installed.
You might try this series of commands.
    cd /usr; find . -name mfhdf.h


> 
> I'm having trouble compiling the NetCDF library from source with HDF4
> support. So far, I've followed the instructions for building and installing
> the HDF4 library with the --disable-netcdf option:
> 
> $ # Build and install HDF4
> $ ./configure --enable-shared --disable-netcdf --disable-fortran
> --prefix=${H4DIR}
> $ make check
> $ make install
> 
> After that, I set my environment variable options CPPFLAGS and LDFLAGS to
> the appropriate paths (-I/usr/local/include and -L/usr/local/lib) and tried
> to compile the netcdf-c-4.6.2 package:
> 
> $ # Build and install netCDF-4 with HDF4 access enabled
> $ CPPFLAGS="-I${H5DIR}/include -I${H4DIR}/include" \
> LDFLAGS="-L${H5DIR}/lib -L${H4DIR}/lib" \
> ./configure --enable-hdf4 --enable-hdf4-file-tests
> 
> However, I keep getting the error that it can't find mfhdf.h. I found this
> exchange addressing the same problem (
> https://www.unidata.ucar.edu/mailing_lists/archives/netcdfgroup/2010/msg00348.html),
> but it was resolved by setting the environment variables as above and that
> doesn't seem to help for me.
> 
> I'm wondering if you might have any other suggestions that might resolve
> the problem. My ultimate goal is to use the R library ncdf4 to analyze HDF4
> files and any help would be very much appreciated. Looking forward to
> hearing back.
> 
> Thanks a lot,
> JP
> 
> --
> JP Rippe
> 
> PhD Candidate - Marine Sciences
> The University of North Carolina at Chapel Hill
> Castillo Lab <http://castillolab.web.unc.edu/>
> 
> 

=Dennis Heimbigner
  Unidata


Ticket Details
===================
Ticket ID: BXR-962926
Department: Support netCDF
Priority: Urgent
Status: Open
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.