I'm trying to install NetCDF in Ubuntu, so I followed the guide in: https://docs.unidata.ucar.edu/nug/current/getting_and_building_netcdf.html
but when I get to the actual building I get the error of "can't find or link to the hdf5 library" even tho I already installed it. The solution seems to be in the guide:
*"Before building netCDF, you may need to add ${H5DIR}/lib to the LD_LIBRARY_PATH environment variable if that lib directory is not searched by default" *
So the question is: how to do that? what's the code?
echo $LD_LIBRARY_PATH
gives me a path to ~/netcdf-c.-4.9.2/lib but no idea where it should be pointing