Skip to content

Instantly share code, notes, and snippets.

@acrosby
Last active December 17, 2015 09:09
Show Gist options
  • Save acrosby/5585213 to your computer and use it in GitHub Desktop.
Save acrosby/5585213 to your computer and use it in GitHub Desktop.
sudo apt-get install dpkg-dev libcurl4-gnutls-dev
# Download netCDF4 source unpack and cd to directory
wget ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-4.2.1.1.zip
unzip netcdf-4.2.1.1.zip
cd netcdf-4.2.1.1
LDFLAGS=-L/usr/local/lib CPPFLAGS=-I/usr/local/include ./configure --enable-netcdf-4 --enable-dap --enable-shared --prefix=/usr/local --disable-doxygen
make -j 2
sudo make install
cd ..
sudo ldconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment