Compiling a recent ogr2ogr from source on CentOS (RHEL) - wavded/ogre GitHub Wiki
How to install ogr2ogr from source on CentOS (RHEL)
Install the following packages:
yum install gcc-c++
yum install gcc
yum install libpng
yum install libtiff
yum install SFCGAL-devel
Build latest proj4
wget https://download.osgeo.org/proj/proj-5.1.0.tar.gz
tar -zvxf proj-5.1.0.tar.gz
cd proj-5.1.0
./configure
make
make install
Build latest gdal
wget http://download.osgeo.org/gdal/2.3.0/gdal-2.3.0.tar.gz
tar -zvxf gdal-2.3.0.tar.gz
cd gdal-2.3.0
./configure --with-proj=/usr/local/lib --with-threads --with-libtiff=internal --with-geotiff=internal --with-jpeg=internal --with-gif=internal --with-png=internal --with-libz=internal
make
make install
Making ogr2ogr globally accessible
ln -s /usr/local/bin/ogr2ogr /usr/local/ogr2ogr