[R] Problem installing rgdal.
profjcnash at gmail.com
Wed Oct 5 01:56:25 CEST 2016
Can you build/install the source package? I had a problem once where my libraries were "too recent" for the R package,
but I could build against my installed base. In any event, it may point out the source of the problem.
I can appreciate your frustration -- been there, but wish I hadn't.
On 16-10-04 05:07 PM, Rolf Turner wrote:
> On 05/10/16 01:10, ProfJCNash wrote:
>> I found that I have libgdal1-dev installed too.
>> john at john-J6-2015 ~ $ dpkg -l | grep gdal
>> ii libgdal-dev 1.10.1+dfsg-5ubuntu1 amd64
>> Geospatial Data Abstraction Library - Development files
>> ii libgdal1-dev 1.10.1+dfsg-5ubuntu1 all
>> Geospatial Data Abstraction Library - Transitional package
>> ii libgdal1h 1.10.1+dfsg-5ubuntu1 amd64
>> Geospatial Data Abstraction Library
>> john at john-J6-2015 ~ $
>> and I get the following outputs in R:
>> Loading required package: sp
>> rgdal: version: 1.1-10, (SVN revision 622)
>> Geospatial Data Abstraction Library extensions to R successfully loaded
>> Loaded GDAL runtime: GDAL 1.10.1, released 2013/08/26
>> Path to GDAL shared files: /usr/share/gdal/1.10
>> Loaded PROJ.4 runtime: Rel. 4.8.0, 6 March 2012, [PJ_VERSION: 480]
>> Path to PROJ.4 shared files: (autodetected)
>> Linking to sp version: 1.2-3
>> R version 3.3.1 (2016-06-21)
>> Platform: x86_64-pc-linux-gnu (64-bit)
>> Running under: Ubuntu 14.04.4 LTS
>>  LC_CTYPE=en_CA.UTF-8 LC_NUMERIC=C
>>  LC_TIME=en_CA.UTF-8 LC_COLLATE=en_CA.UTF-8
>>  LC_MONETARY=en_CA.UTF-8 LC_MESSAGES=en_CA.UTF-8
>>  LC_PAPER=en_CA.UTF-8 LC_NAME=C
>>  LC_ADDRESS=C LC_TELEPHONE=C
>>  LC_MEASUREMENT=en_CA.UTF-8 LC_IDENTIFICATION=C
>> attached base packages:
>>  stats graphics grDevices utils datasets methods base
>> other attached packages:
>>  rgdal_1.1-10 sp_1.2-3
>> loaded via a namespace (and not attached):
>>  grid_3.3.1 lattice_0.20-33
>> Hope this is helpful.
> Afraid not. I did not have libgdal1-dev installed, but having installed it I tried
> again and got the same damned error message as before.
>> ** 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
> Has anyone out there any other ideas as to what's going wrong for me and how I might fix it?
More information about the R-help