[R] Problem installing rgdal.

Jeff Newmiller jdnewmil at dcn.davis.ca.us
Wed Oct 5 03:25:41 CEST 2016


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.



More information about the R-help mailing list