Created
May 26, 2017 13:25
-
-
Save hepplerj/37dc8e03e7dc532559f8162f42feb577 to your computer and use it in GitHub Desktop.
A script for setting up GDAL on Ubuntu 12.04
This file contains 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
# Install subversion | |
sudo apt-get -y install subversion | |
# Install g++ | |
sudo apt-get -y install g++ | |
# Install Hierarchical Data Format library | |
sudo apt-get -y install libhdf4-alt-dev | |
# Get trunk of gdal | |
svn checkout https://svn.osgeo.org/gdal/trunk/gdal gdal | |
# Configure and make | |
cd gdal | |
./configure | |
sudo make install | |
# Modify .bashrc to export environment variable necessary for gdal to find library files | |
echo " " >> $HOME/.bashrc | |
echo "# GDAL environment variables" >> $HOME/.bashrc | |
echo "export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH" >> $HOME/.bashrc | |
source $HOME/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment