Skip to content

Instantly share code, notes, and snippets.

@rastermanden
Created March 28, 2018 10:03
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rastermanden/ac171ff6818b038ac549fd92315b5de1 to your computer and use it in GitHub Desktop.
Save rastermanden/ac171ff6818b038ac549fd92315b5de1 to your computer and use it in GitHub Desktop.
install gdal with python amazon AMI
sudo yum-config-manager --enable epel
sudo yum install gdal-python
sudo yum -y update
sudo yum -y install make automake gcc gcc-c++ libcurl-devel proj-devel geos-devel
cd /tmp
curl -L http://download.osgeo.org/gdal/2.2.4/gdal-2.2.4.tar.gz | tar zxf -
cd gdal-2.2.4/
./configure --prefix=/usr/local --with-python
make -j4
sudo make install
sudo easy_install GDAL
export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"
sudo ldconfig
@aaronsilverman
Copy link

much easier to just use anaconda and conda install gdal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment