[R-sig-Debian] Problem installing rgdal on a laptop running Ubuntu 16.04.1

Rolf Turner r.turner at auckland.ac.nz
Tue Oct 4 23:54:43 CEST 2016

I previously sent a cri de coeur about this problem to the r-help list 
but so far have not managed to extract a solution.  So I am trying here.
(Uh, Ubuntu *is* a "special instance" of Debian, isn't it?)

The problem is that I cannot install rgdal, and I need it.  Rather 

I do:


and get the error message:

> ** testing if installed package can be loaded
> Error in dyn.load(file, DLLpath = DLLpath, ...) :
>   unable to load shared object '/home/rolf/Rlib/rgdal/libs/rgdal.so':
>   /home/rolf/Rlib/rgdal/libs/rgdal.so: undefined symbol: CPLQuietErrorHandler
> Error: loading failed
> Execution halted

I have installed libgdal-dev and (later, prompted by an email from Prof. 
John Nash) libgdal1-dev.  I also have installed libproj-dev,
as instructed by one site that I found by googling around.

No joy.

I have also gone to the Ubuntu Launchpad site and looked at the material 
there, but could not make any sense of it nor was I able to discern how 
to make use of that material.

I also tried installing gdal-bin as suggested by one site that I looked 
at; no help.

Can anyone point me in the right direction?


Rolf Turner

P. S.  For what it's worth: my sessionInfo():

R version 3.3.1 (2016-06-21)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.1 LTS

  [1] LC_CTYPE=en_NZ.UTF-8       LC_NUMERIC=C
  [3] LC_TIME=en_NZ.UTF-8        LC_COLLATE=en_NZ.UTF-8
  [7] LC_PAPER=en_NZ.UTF-8       LC_NAME=C
  [9] LC_ADDRESS=C               LC_TELEPHONE=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] fortunes_1.5-4 misc_0.0-16

loaded via a namespace (and not attached):
  [1] deldir_0.1-13       Matrix_1.2-3        tools_3.3.1
  [4] mgcv_1.8-12         abind_1.4-3         spatstat_1.46-1.059
  [7] rpart_4.1-10        nlme_3.1-128        grid_3.3.1
[10] polyclip_1.5-0      lattice_0.20-33     goftest_1.0-3
[13] tensor_1.5

R. T.

Technical Editor ANZJS
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276

More information about the R-SIG-Debian mailing list