Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save pnsinha/ce978924b453b9960b08ea09043168c5 to your computer and use it in GitHub Desktop.

Select an option

Save pnsinha/ce978924b453b9960b08ea09043168c5 to your computer and use it in GitHub Desktop.
#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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment