Skip to content

Instantly share code, notes, and snippets.

@alanorth
Last active May 12, 2020
Embed
What would you like to do?
Install GDAL 2.4.2 on CentOS 7

Install Proj

GDAL needs Proj:

$ cd /tmp
$ wget https://download.osgeo.org/proj/proj-6.1.1.tar.gz
$ tar xf proj-6.1.1.tar.gz 
$ cd proj-6.1.1
$ ./configure --prefix=/export/apps/proj/6.1.1
$ make -j4
$ sudo mkdir -p /export/apps/proj/6.1.1
$ sudo chown aorth /export/apps/proj/6.1.1
$ make install
$ sudo chown -R root:root /export/apps/proj/6.1.1

Install GDAL

$ cd /tmp
$ wget https://download.osgeo.org/gdal/2.4.2/gdal-2.4.2.tar.gz
$ tar xf gdal-2.4.2.tar.gz
$ cd gdal-2.4.2
$ sudo yum install libzstd-devel sqlite-devel libwebp-devel hdf5-devel
$ ./configure --prefix=/export/apps/gdal/2.4.2 --with-proj=/export/apps/proj/6.1.1
$ make -j4
$ sudo mkdir -p /export/apps/gdal/2.4.2
$ sudo chown -R aorth /export/apps/gdal/2.4.2
$ make install
$ sudo chown -R root:root /export/apps/gdal/2.4.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment