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
?Hey Ron, I (literally, in the correct use of the term) fired up an Ubuntu 16.04 vagrant box - https://atlas.hashicorp.com/bento/boxes/ubuntu-16.04 - and then did: lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.1 LTS Release: 16.04 Codename: xenial and, then: sudo echo "deb http://cran.rstudio.com/bin/linux/ubuntu xenial/" | sudo tee -a /etc/apt/sources.list gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9 gpg -a --export E084DAB9 | sudo apt-key add - sudo apt-get update sudo apt-get install r-base r-base-dev sudo apt-get install libgdal-dev sudo apt-get install libproj4-dev and then did install.packages("rgdal") in an R session and it's working fine:> 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.11.3, released 2015/09/16 Path to GDAL shared files: /usr/share/gdal/1.11 Loaded PROJ.4 runtime: Rel. 4.9.2, 08 September 2015, [PJ_VERSION: 492] Path to PROJ.4 shared files: (autodetected) Linking to sp version: 1.2-3 I wish I could have run into errors and helped debug your issue, but it went in flawlessly. -Bob ? On Tue, Oct 4, 2016 at 8:31 PM, Rolf Turner <r.turner at auckland.ac.nz> wrote:> 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 > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posti > ng-guide.html > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]
And if that was not intuitively obvious, googling "CRAN Ubuntu" would lead you to [1]. There is also R-sig-debian for these kinds of OS-specific questions next time. (I wish there was an R-sig-windows, but I suppose no one would support it.) [1] https://cran.r-project.org/bin/linux/ubuntu/ -- Sent from my phone. Please excuse my brevity. On October 4, 2016 6:12:31 PM PDT, Bob Rudis <bob at rud.is> wrote:>?Hey Ron, > >I (literally, in the correct use of the term) fired up an Ubuntu 16.04 >vagrant box - https://atlas.hashicorp.com/bento/boxes/ubuntu-16.04 - >and >then did: > >lsb_release -a >No LSB modules are available. >Distributor ID: Ubuntu >Description: Ubuntu 16.04.1 LTS >Release: 16.04 >Codename: xenial > >and, then: > >sudo echo "deb http://cran.rstudio.com/bin/linux/ubuntu xenial/" | sudo >tee >-a /etc/apt/sources.list >gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9 >gpg -a --export E084DAB9 | sudo apt-key add - >sudo apt-get update >sudo apt-get install r-base r-base-dev >sudo apt-get install libgdal-dev >sudo apt-get install libproj4-dev > >and then did > >install.packages("rgdal") > >in an R session and it's working fine: > >> 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.11.3, released 2015/09/16 > Path to GDAL shared files: /usr/share/gdal/1.11 >Loaded PROJ.4 runtime: Rel. 4.9.2, 08 September 2015, [PJ_VERSION: 492] > Path to PROJ.4 shared files: (autodetected) > Linking to sp version: 1.2-3 > >I wish I could have run into errors and helped debug your issue, but it >went in flawlessly. > >-Bob >? > > >On Tue, Oct 4, 2016 at 8:31 PM, Rolf Turner <r.turner at auckland.ac.nz> >wrote: > >> 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 >> >> ______________________________________________ >> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide http://www.R-project.org/posti >> ng-guide.html >> and provide commented, minimal, self-contained, reproducible code. >> > > [[alternative HTML version deleted]] > >______________________________________________ >R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide >http://www.R-project.org/posting-guide.html >and provide commented, minimal, self-contained, reproducible code.
Rolf Turner <r.turner at auckland.ac.nz> writes:> 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?I didn't follow the thread closely, but these types of errors can mean version conflicts, i.e. that you have either two versions of gdal installed and the installer picks up the wrong version or a mix of versions or that you have the wrong version installed. Check you gdal installations (from source, package manager, whatever there is), uninstall gdal completely and search thoroughly if there are any leftovers (apt-get purge ...). Then I would logout and login again - just to be sure that all caches are up to date (although I doubt this is necessary). Than I would check if there are any stray installations or rgdal sitting in any library. Than I would install all ubuntu packages neeed for gdal (from the CRAN for rgdal: "for building from source: GDAL >= 1.6.3, library from http://trac.osgeo.org/gdal/wiki/DownloadSource and PROJ.4 (proj >= 4.4.9) from http://download.osgeo.org/proj/"), make sure that they are working from the commandline, and that try again installing the version of rgdal. And if not, there is r-sig-spatial which is a much better place to ask rgdal related questions than r-help. Hope this helps, Rainer> > cheers, > > Rolf-- Rainer M. Krug email: Rainer<at>krugs<dot>de PGP: 0x0F52F982 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 454 bytes Desc: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20161005/a6611fb9/attachment.bin>
On 05/10/16 20:47, Rainer M Krug wrote:> Rolf Turner <r.turner at auckland.ac.nz> writes: > >> 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? > > I didn't follow the thread closely, but these types of errors can mean > version conflicts, i.e. that you have either two versions of gdal > installed and the installer picks up the wrong version or a mix of > versions or that you have the wrong version installed. > > Check you gdal installations (from source, package manager, whatever > there is), uninstall gdal completely and search thoroughly if there are > any leftovers (apt-get purge ...). Then I would logout and login again - > just to be sure that all caches are up to date (although I doubt this > is necessary). > > Than I would check if there are any stray installations or rgdal sitting > in any library. > > Than I would install all ubuntu packages neeed for gdal (from the CRAN > for rgdal: "for building from source: GDAL >= 1.6.3, library from http://trac.osgeo.org/gdal/wiki/DownloadSource and PROJ.4 (proj >= 4.4.9) from http://download.osgeo.org/proj/"), make sure that > they are working from the commandline, and that try again installing the > version of rgdal. > > And if not, there is r-sig-spatial which is a much better place to ask > rgdal related questions than r-help. > > Hope this helps.Thanks. That seems to be good advice. I'll try it. cheers, Rolf -- Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276