Skip to content

Instantly share code, notes, and snippets.

@saxenap
Last active November 10, 2021 11:52
Show Gist options
  • Save saxenap/15b7405b817d5e8e7cfb502ec3354231 to your computer and use it in GitHub Desktop.
Save saxenap/15b7405b817d5e8e7cfb502ec3354231 to your computer and use it in GitHub Desktop.
cd Downloads
download_dir=$(pwd)
cd $download_dir
curl https://download.osgeo.org/geos/geos-3.9.1.tar.bz2 --output geos.tar.bz2
mkdir geos
tar xjf geos.tar.bz2 -C geos --strip-components=1
cd geos
./configure && make
sudo make install
cd $download_dir
curl https://pkgconfig.freedesktop.org/releases/pkg-config-0.29.2.tar.gz -o pkgconfig.tgz
mkdir pkgconfig
tar -zxf pkgconfig.tgz -C pkgconfig --strip-components=1
cd pkgconfig
./configure --with-internal-glib && make
sudo make install
cd $download_dir
curl http://download.osgeo.org/libtiff/tiff-4.0.9.tar.gz --output tiff.tar.gz
mkdir tiff
tar xvfz tiff.tar.gz -C tiff --strip-components=1
cd tiff
./configure && make
sudo make install
sudo ln -s /usr/local/libtiff/lib/pkgconfig/libtiff-4.pc /usr/local/lib/pkgconfig/
cd $download_dir
curl https://download.osgeo.org/proj/proj-8.1.1.tar.gz --output proj.tar.gz
mkdir proj
tar xzf proj.tar.gz -C proj --strip-components=1
cd proj/data
curl https://download.osgeo.org/proj/proj-data-1.7.tar.gz --output proj-data.tar.gz
tar xzf proj-data.tar.gz
cd ..
./configure SQLITE3_LIBS=-lsqlite3 && make
sudo make install
cd $download_dir
curl http://download.osgeo.org/gdal/CURRENT/gdal-3.3.2.tar.gz --output gdal.tar.gz
mkdir gdal
tar xzf gdal.tar.gz -C gdal --strip-components=1
cd gdal
./configure && make
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment