-
-
Save marcpicaud/6278c7c85eb17a099ee62a1ee4c251b4 to your computer and use it in GitHub Desktop.
install gdal with python amazon AMI
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
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