NCAR / aerosol-workshop-driver

Driver for use in an aerosol interface hack-a-thon
Apache License 2.0
3 stars 6 forks source link

NetCDF4 libraries require HDF5 (and sometimes curl) #46

Open jeff-cohere opened 2 years ago

jeff-cohere commented 2 years ago

One of our participants is trying to get NetCDF4 working, and noticed that the following libraries are required (excluding the Fortran netcdff library for Fortran programs):

-lnetcdf -lhdf5_hl -lhdf5 -lm -ldl -lz -lcurl

This means we need to handle HDF5 libraries, the libz compression library, and libcurl.

jeff-cohere commented 2 years ago

I think if we advise folks to link against shared NetCDF libraries, this issue goes away. We only need to explicitly link all this stuff in if NetCDF has been built as a static library.

pbosler commented 2 years ago

All except curl make sense...

jeff-cohere commented 2 years ago

Curl is part of NetCDF's "kitchen-sink" strategy to I/O. Fortunately, as it happens, we've surmounted this particular difficulty using module's installed on the system of interest.