Created
May 6, 2015 15:57
-
-
Save arthur-e/f836e3e612bdf4a0ca88 to your computer and use it in GitHub Desktop.
A walkthrough for building LEDAPS 2.2.0 and its dependencies from source on Ubuntu GNU/Linux 14.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USERNAME=heyyouguys | |
# NOTE: Could not determine which jpeg library should be installed; it's probably installed by default | |
sudo apt-get install libtiff5 libtiff5-dev libgeotiff2 libgeotiff-dev libxml2 libxml2-dev | |
# http://www.hdfgroup.org/release4/obtainsrc.html | |
sudo mkdir /usr/local/hdf4 && sudo chown $USERNAME /usr/local/hdf4 && cd /usr/local/hdf4 | |
wget http://www.hdfgroup.org/ftp/HDF/HDF_Current/src/hdf-4.2.11.tar.gz | |
tar -xzvf hdf-4.2.11.tar.gz | |
cd hdf-4.2.11 | |
./configure | |
make | |
make check | |
make install | |
sudo ldconfig | |
# http://hdfeos.org/software/hdfeos.php | |
sudo mkdir /usr/local/hdf-eos && sudo chown $USERNAME /usr/local/hdf-eos && cd /usr/local/hdf-eos | |
wget ftp://edhs1.gsfc.nasa.gov/edhs/hdfeos/latest_release/HDF-EOS2.19v1.00.tar.Z | |
tar -xzvf HDF-EOS2.19v1.00.tar.Z | |
cd hdfeos | |
./configure -enable-install-include CC=/usr/local/hdf4/hdf-4.2.11/hdf4/bin/h4cc | |
make | |
make check | |
make install | |
sudo ldconfig | |
# Alternatively: HDF-EOS2 and General Cartographic Transformation Package (GCTP) from package | |
# sudo apt-get install libhdfeos0 libhdfeos-dev libgctp0d libgctp-dev | |
# https://code.google.com/p/espa-common/wiki/Version_1_1_0 | |
sudo svn checkout http://espa-common.googlecode.com/svn/releases/version_1.3.1 /usr/local/espa-common/version_1.3.1 | |
sudo chown -R $USERNAME espa-common | |
export HDFEOS_GCTPINC="/usr/include/gctp/" | |
export HDFEOS_GCTPLIB="/usr/local/hdf-eos/hdfeos/hdfeos2/lib" | |
export TIFFINC="/usr/include/x86_64-linux-gnu/" | |
export TIFFLIB="/usr/lib/x86_64-linux-gnu/" | |
export GEOTIFF_INC="/usr/include/geotiff/" | |
export GEOTIFF_LIB="/usr/lib/" | |
export HDFINC="/usr/local/hdf4/hdf-4.2.11/hdf4/include/" | |
export HDFLIB="/usr/local/hdf4/hdf-4.2.11/hdf4/lib/" | |
export HDFEOS_INC="/usr/local/hdf-eos/hdfeos/include/" # Where to find HE2_config.h | |
export HDFEOS_LIB="/usr/local/hdf-eos/hdfeos/hdfeos2/lib" | |
export JPEGINC="/usr/include/" | |
export JPEGLIB="/usr/lib/x86_64-linux-gnu/" | |
export XML2INC="/usr/include/libxml2/" | |
export XML2LIB="/usr/lib/x86_64-linux-gnu/" | |
cd /usr/local/espa-common/version_1.3.1/src/raw_binary/ | |
make | |
make install | |
sudo ldconfig | |
# These are the include and lib directories just created | |
export ESPAINC="/usr/local/espa-common/version_1.3.1/src/raw_binary/include/" | |
export ESPALIB="/usr/local/espa-common/version_1.3.1/src/raw_binary/lib/" | |
# https://code.google.com/p/ledaps/wiki/Version_2_2_0 | |
# https://code.google.com/p/ledaps/issues/detail?id=5&can=1 | |
sudo svn checkout http://ledaps.googlecode.com/svn/releases/version_2.2.1 /usr/local/ledaps/version_2.2.1 | |
sudo chown -R $USERNAME ledaps | |
cd /usr/local/ledaps/version_2.2.1/ledapsSrc/src/ | |
make | |
make install | |
make clean | |
sudo ldconfig |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment