Created
March 28, 2018 10:03
-
-
Save rastermanden/ac171ff6818b038ac549fd92315b5de1 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
much easier to just use anaconda and conda install gdal.