Skip to content
Prev 24752 / 29559 Next

Problems with installing rgdal on Ubuntu "checking gdal: linking with --libs only... no"

What is your output of gdal-config --libs ? On 14.04 I see:

$ gdal-config --libs
-L/usr/local/lib -lgdal
$ which gdal-config
/usr/local/bin/gdal-config
$ gdal-config --version
2.1.0

which indicates a manual install (from source). Your error message below
indicates a version in /usr/local/ that is broken. Manually installed
libs in /usr/local override the ones installed by apt* (which are in
/usr/lib etc -- Robin's post assumes no installs in /usr/local), so now
you must either:

1. fix the installed version in /usr/local , or
2. remove the ones installed in /usr/local so that the ones in /usr/lib
are found.
On 04/08/16 16:42, Tomislav Hengl wrote: