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: > >> library(rgdal) > 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 >> sessionInfo() > R version 3.3.1 (2016-06-21) > Platform: x86_64-pc-linux-gnu (64-bit) > Running under: Ubuntu 14.04.4 LTS > > locale: > [1] LC_CTYPE=en_CA.UTF-8 LC_NUMERIC=C > [3] LC_TIME=en_CA.UTF-8 LC_COLLATE=en_CA.UTF-8 > [5] LC_MONETARY=en_CA.UTF-8 LC_MESSAGES=en_CA.UTF-8 > [7] LC_PAPER=en_CA.UTF-8 LC_NAME=C > [9] LC_ADDRESS=C LC_TELEPHONE=C > [11] LC_MEASUREMENT=en_CA.UTF-8 LC_IDENTIFICATION=C > > attached base packages: > [1] stats graphics grDevices utils datasets methods base > > other attached packages: > [1] rgdal_1.1-10 sp_1.2-3 > > loaded via a namespace (and not attached): > [1] 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 install.packages("rgdal",lib="/home/rolf/Rlib") 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 haltedHas anyone out there any other ideas as to what's going wrong for me and how I might fix it? cheers, Rolf -- Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276
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. Best, JN 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: >> >>> library(rgdal) >> 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 >>> sessionInfo() >> R version 3.3.1 (2016-06-21) >> Platform: x86_64-pc-linux-gnu (64-bit) >> Running under: Ubuntu 14.04.4 LTS >> >> locale: >> [1] LC_CTYPE=en_CA.UTF-8 LC_NUMERIC=C >> [3] LC_TIME=en_CA.UTF-8 LC_COLLATE=en_CA.UTF-8 >> [5] LC_MONETARY=en_CA.UTF-8 LC_MESSAGES=en_CA.UTF-8 >> [7] LC_PAPER=en_CA.UTF-8 LC_NAME=C >> [9] LC_ADDRESS=C LC_TELEPHONE=C >> [11] LC_MEASUREMENT=en_CA.UTF-8 LC_IDENTIFICATION=C >> >> attached base packages: >> [1] stats graphics grDevices utils datasets methods base >> >> other attached packages: >> [1] rgdal_1.1-10 sp_1.2-3 >> >> loaded via a namespace (and not attached): >> [1] 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 > install.packages("rgdal",lib="/home/rolf/Rlib") > 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? > > cheers, > > Rolf >
On 05/10/16 12:56, ProfJCNash wrote:> 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.Essentially install.packages() builds from source. I also tried to install from the source tarball; same error resulted. Surely there *must* be somebody out there who understands what's going on and how to fix it. Mustn't there? cheers, Rolf -- Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276