Step 1: Make sure you have the following packages on CentOS 7
yum install gcc-c++ yum install gcc yum install libpng yum install libtiff
Step 2: Compile and Install Proj-5.2.0
a. Download Source from http://download.osgeo.org/proj/
# wget https://download.osgeo.org/proj/proj-5.2.0.tar.gz
# tar -zvxf proj-5.2.0.tar.gz # cd proj-5.2.0 # ./configure --prefix=/usr/local/proj-5.2.0 # make -j 16 # make install
Step 3: Compile and Install gdal-2.4.3
# wget http://download.osgeo.org/gdal/2.4.3/gdal-2.4.3.tar.gz
# tar -zxvf gdal-2.4.3.tar.gz # cd gdal-2.4.3 # ./configure --prefix=/usr/local/gdal-2.4.3 --with-proj=/usr/local/proj-5.2.0 LDFLAGS="-L/usr/local/proj-5.2.0/lib" CPPFLAGS="-I/usr/local/proj-5.2.0/include" --with-threads --with-libtiff=internal --with-geotiff=internal --with-jpeg=internal --with-gif=internal --with-png=internal --with-libz=internal # make -j 16 # make install
References:
Thanks for share the steps for installation of gdal. I follow the same steps & successfull i was able to install the gdal. Just the change i did is was the path mention in .\configure wrt to my folder path. As i want to run my code on python3.4 virtual env. im getting error of no module found.
LikeLike