I have Ubuntu 16.04 with postgresql 9.6 postgis 2.3 QGIS 2.18 installed.
I am trying to install mapview (R library) with no success because of sf defencency.
I had this output:
configure: GDAL: 1.11.3
checking GDAL version >= 2.0.0... no
configure: error: sf is not compatible with GDAL versions below 2.0.0
ERROR: configuration failed for package ‘sf’
* removing ‘/usr/local/lib/R/site-library/sf’
and this is what happened on the terminal:
$gdalinfo --version
GDAL 2.1.0, released 2016/04/25
$ gdal-config --version
1.11.3
I am wondering the following questions:
Which is the difference between gdalinfo and gdal-config ?
Why does R say me that I have a GDAL version less than 2.0.0 even if output of gdalinfo --version is GDAL 2.1.0?
How can I upgrade Gdal-config to one >= 2.0.0?
If I upgrade, will I have problem with postgresql, postgis Qgis or some other python module that use GDAL?
apt-cache policy libgdal-devlibgdal-dev: Installed: 1.11.3+dfsg-3build2 Candidate: 1.11.3+dfsg-3build2 Version table: *** 1.11.3+dfsg-3build2 500 500 http://es.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages 100 /var/lib/dpkg/statusIt seems I cannot upload to version 2.1.0 without any conflict..right?
– Glori P. Jul 06 '17 at 10:02this is the output:
– Glori P. Jul 06 '17 at 11:22gdal-bin: Installed: 2.1.0+dfsg-1~trusty2 Candidate: 2.1.0+dfsg-1~trusty2 Version table: *** 2.1.0+dfsg-1~trusty2 100 100 /var/lib/dpkg/status 1.11.3+dfsg-3build2 500 500 http://es.archive.ubuntu.com/ubuntu xenial/universe amd64 Packagesapt-get policy postgis:
– Glori P. Jul 06 '17 at 11:29postgis: Installed: 2.3.2+dfsg-1~exp2.pgdg16.04+1 Candidate: 2.3.2+dfsg-1~exp2.pgdg16.04+1 Version table: *** 2.3.2+dfsg-1~exp2.pgdg16.04+1 500 500 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main amd64 Packages 100 /var/lib/dpkg/status 2.2.1+dfsg-2 500 500 http://es.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages