Skip to content

Instantly share code, notes, and snippets.

@marcpicaud
Forked from rastermanden/install-gdal.sh
Created July 1, 2020 20:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcpicaud/6278c7c85eb17a099ee62a1ee4c251b4 to your computer and use it in GitHub Desktop.
Save marcpicaud/6278c7c85eb17a099ee62a1ee4c251b4 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment