# Installing GDAL 3.2.0 on Amazon Linux 2 ![gdal](https://gdal.org/_static/gdalicon.png "GDAL") ![linux](https://upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Tux_Mono.svg/90px-Tux_Mono.svg.png "Linux") ![yum](https://upload.wikimedia.org/wikipedia/commons/0/0e/Yum.png "yum") As of this day, this is probably the only and fastest way of installing it. ## Package requirements Based from the [GDAL](https://gdal.org/download.html#build-requirements) and [PROJ](https://proj.org/install.html#build-requirements) build requirements, here is the full list of required packages to install: - **C++11** - [`cpp`](https://linux.die.net/man/1/cpp) version `7.3.1` - **PROJ 6** - [`proj`](https://linux.die.net/man/1/proj) version `6.1.1` - **SQLite3** - [`sqlite3`](https://linux.die.net/man/1/sqlite3) version `3.7.17` - **libtiff** - version `4.0` - **cmake** - version `3.13.1` ## 1. Installation of required packages Luckilly, we don't have to install everything from source. At least some can be installed through **yum**. ```bash sudo yum install cpp.x86_64 sqlite-devel.x86_64 libtiff.x86_64 cmake3.x86_64 -y ``` ## 2. Installation of PROJ Installation from source, currently there's no other way but this. ```bash cd /tmp wget https://download.osgeo.org/proj/proj-6.1.1.tar.gz tar -xvf proj-6.1.1.tar.gz cd proj-6.1.1 ./configure sudo make sudo make install ``` ### Important Be careful not to install **PROJ** version `6.2.0` or newer because the one from the `yum` packages is only **SQLite** version `3.7.17`. Installing **PROJ** version `6.2.0` would require installing **SQLite** version `3.11` which you may need to install from source and not with **yum**. ## 3. Installation of GDAL Installation from source, currently there's no other way but this. ``` cd /tmp wget https://github.com/OSGeo/gdal/releases/download/v3.2.0/gdal-3.2.0.tar.gz tar -xvf gdal-3.2.0.tar.gz cd gdal-3.2.0 ./configure --with-proj=/usr/local --with-python sudo make sudo make install ``` ## Testing your installation ```bash which gdalinfo; gdalinfo --version ``` it should show something like ```bash /usr/local/bin/gdalinfo GDAL 3.2.0, released 2020/10/26 ``` ![finally](https://i.kym-cdn.com/photos/images/newsfeed/000/640/962/d91.gif "finally")