Last active
November 3, 2015 03:29
-
-
Save meule/1cb42886a432db85417b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# bash script to install GDAL 2.0.1 with Python on Ubuntu 14.04 (works on Scaleway ARM architecture) | |
apt-get unzip install g++ byacc flex libjpeg-dev zlib1g-dev build-essential libhdf4-dev libhdf5-dev hdf5-tools libproj-dev python-numpy python-pip python-setuptools python-dev -y | |
pip install numpy | |
apt-get install python3-numpy python3-pip python-setuptools python3-dev -y | |
pip3 install numpy --upgrade | |
mkdir /opt/gdal | |
cd /opt/gdal | |
wget http://download.osgeo.org/gdal/2.0.1/gdal201.zip | |
wget http://download.osgeo.org/gdal/2.0.1/gdal201.zip.md5 | |
OK=$( md5sum -c gdal201.zip.md5 ) | |
[ "$OK" != "gdal201.zip: OK" ] && { echo "! MD5 not good !"; exit 1; } | |
unzip gdal201.zip | |
cd gdal-2.0.1 | |
#make clean | |
./configure --with-python | |
make | |
sudo make install | |
sudo ldconfig | |
# have fun and sex! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bash script to install GDAL 2.0.1 with Python on Ubuntu 14.04 (works on Scaleway ARM architecture)
Have fun and sex!