[R] Problem installing rgdal.

Rainer M Krug
Wed, 05 Oct 2016 07:47:11 -0000

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>