pnsinha
2/11/2018 - 8:28 PM

Compiling proj and gdal on cluster in personal account

#download the latest proj.4 package
wget http://download.osgeo.org/proj/proj-5.0.0RC2.zip
unzip -o -q proj-5.0.0RC2.zip -d ./
cd proj-5.0.0
./configure --prefix=/scratch/home/p0sinh02/packages/proj/
make  
make install

#download the latest GDAL package
wget http://download.osgeo.org/gdal/CURRENT/gdal-2.2.3.tar.gz
tar  -zxvf gdal-2.2.3.tar.gz
cd gdal-2.2.3
./configure --with-python --prefix=/scratch/home/p0sinh02/packages/gdal/ 
make  
make install

# Add the necessary path variable
export PATH=/scratch/home/p0sinh02/packages/gdal/bin:$PATH
export LD_LIBRARY_PATH=/scratch/home/p0sinh02/packages/gdal/lib:$LD_LIBRARY_PATH
export GDAL_DATA=/scratch/home/p0sinh02/packages/gdal/share/gdal