Created
February 5, 2018 00:25
-
-
Save hammadzz/b763e7ec5dd9c83c1855e10e654648e4 to your computer and use it in GitHub Desktop.
Installing GEOS PROJ.4 GDAL for PostGIS GeoDjango
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 -y update | |
sudo yum -y install make cmake gcc gcc-c++ libtool libcurl-devel libxml2-devel curl-devel python-devel | |
#GEOS | |
wget http://download.osgeo.org/geos/geos-3.4.2.tar.bz2 | |
tar xvf geos-3.4.2.tar.bz2 | |
cd geos-3.4.2/ | |
./configure | |
make | |
sudo make install | |
cd .. | |
#PROJ.4 | |
wget http://download.osgeo.org/proj/proj-4.9.1.tar.gz | |
wget http://download.osgeo.org/proj/proj-datumgrid-1.5.tar.gz | |
tar xzf proj-4.9.1.tar.gz | |
cd proj-4.9.1/nad | |
tar xzf ../../proj-datumgrid-1.5.tar.gz | |
cd .. | |
./configure | |
make | |
sudo make install | |
cd .. | |
#GDAL | |
wget http://download.osgeo.org/gdal/1.11.2/gdal-1.11.2.tar.gz | |
tar xzf gdal-1.11.2.tar.gz | |
cd gdal-1.11.2 | |
./configure --with-python | |
sudo make install | |
cd .. | |
# Treasure -> *.so are in /usr/local/lib | |
tar -czvf lib.tar.gz /usr/local/lib/ | |
# SSH copy to your local or upload everything to S3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment