#For ubuntu cdf distribution downloadthe directory below from NASA:
#https://spdf.gsfc.nasa.gov/pub/software/cdf/dist/cdf38_0/linux/cdf38_0-dist-all.tar.gz,
# untar the: cdf38_0-dist-all.tar.gz
#Find the README file open it.
#From README this are basic instructions
#Also see the references for this solution.
make OS=linux ENV=gnu all
make INSTALLDIR=/usr/local/cdf install