Skip to content
Prev 26648 / 29559 Next

CRAN releases of sp, rgdal and rgeos

Few more notes on installation of GDAL 2.3.

I was installing GDAL and rgdal on another Ubuntu machine and I 
experiences multiple problems with more installations of GDAL and proj4 
probably ("unable to load shared object rgdal.so" error). This is what I 
realized needs to be done before installing GDAL from source:

1. Install libgdal-dev and libroj-dev (very important otherwise the 
installation of rgdal will fail)

|sudo apt-get install libgdal-dev libproj-dev|

2. Download GDAL source code 
(https://trac.osgeo.org/gdal/wiki/DownloadSource) and probably best 
install it using the checkinstall package:

sudo apt install checkinstall

wget http://download.osgeo.org/gdal/2.3.0/gdal-2.3.0.tar.gz

tar -xvzf gdal-2.3.0.tar.gz

cd gdal-2.3.0

./configure

sudo checkinstall

*checkinstall took 20 minutes on my system, so be ready to take coffee 
and relax.

3. This would build a debian package that can then be normally installed 
and removed using the gdebi.

4. Install rgdal using install.packages("rgdal")

Thanks Roger for keeping everything up-to-date and stable! GDAL is the 
backbone of almost any GIS project I run.

Tom
On 19.06.2018 16:57, Tomislav Hengl wrote: