[R-sig-Geo] Problems with installing rgdal on Ubuntu "checking gdal: linking with --libs only... no"
Tomislav Hengl
tom.hengl at gmail.com
Sat Aug 6 15:04:13 CEST 2016
Thanks again everyone (I need to catchup on Ubuntu)! I have now figured
out how to install and remove most recent versions of GDAL, GRASS GIS
and SAGA GIS. For all these I have used installation from source
(because apt-get gdal-bin from ppa:ubuntugis/ppa will only get version
1.11) and then followed the instruction by Shaun (with 'checkinstall').
Unfortunately, I could not figure out how to remove manually installed
libkml that has been causing problems (double installation), so I have
also just done:
sudo find /usr/local/lib/ -name 'libkml*' -delete
This is what I get as output:
------------
directory: /home/tom/gdal-2.1.1
You probably don't want them to be included in the package,
especially if they are inside your home directory.
Do you want me to list them? [n]: n
Should I exclude them from the package? (Saying yes is a good idea) [y]: y
Copying files to the temporary directory...OK
Stripping ELF binaries and libraries...OK
Compressing man pages...OK
Building file list...OK
Building Debian package...OK
Installing Debian package...OK
Erasing temporary files...OK
Writing backup package...OK
OK
Deleting temp dir...OK
**********************************************************************
Done. The new package has been installed and saved to
/home/tom/gdal-2.1.1/gdal_2.1.1-1_amd64.deb
You can remove it from your system anytime using:
dpkg -r gdal
**********************************************************************
------------
On 04/08/16 22:14, Shaun Walbridge wrote:
> I've had good luck using checkinstall [1] to manage custom compiled packages as well, if you do want to have custom compiled packages which are registered with the system package management system. I've found this to be invaluable when working with dependency heavy packages like GDAL.
>
> 1. https://urldefense.proofpoint.com/v2/url?u=https-3A__wiki.debian.org_CheckInstall&d=CwIGaQ&c=n6-cguzQvX_tUIrZOS_4Og&r=fCPRb7QX-vd5bnO9gIJHCiX852SVUtyYX--xtCKtpfk&m=kBjV7CmsaZkV_yYVagS4Dh9xfKYByScSx0FKqzophaU&s=XYGc6Fga7Uuvnnd12W13ICsU77PsATlWdZiduFg0F38&e=
>
> -----Original Message-----
> From: R-sig-Geo [mailto:r-sig-geo-bounces at r-project.org] On Behalf Of Edzer Pebesma
> Sent: Thursday, August 04, 2016 4:03 PM
> To: r-sig-geo at r-project.org
> Subject: Re: [R-sig-Geo] Problems with installing rgdal on Ubuntu "checking gdal: linking with --libs only... no"
>
>
>
> On 04/08/16 20:49, Tomislav Hengl wrote:
>> I am surprised that I had to manually delete files from the disk (I
>> guess manual install means manual deletion?), but yes this does solve
>> the problem.
> You didn't have to: from the gdal source directory where you installed manually by
>
> ./configure
> make
> sudo make install
>
> you can also do a
>
> sudo make clean
>
> which should remove everything (including e.g. the header files now still in /usr/local/include)
> --
> Edzer Pebesma
> Institute for Geoinformatics (ifgi), University of Münster Heisenbergstraße 2, 48149 Münster, Germany; +49 251 83 33081
> Journal of Statistical Software: https://urldefense.proofpoint.com/v2/url?u=http-3A__www.jstatsoft.org_&d=CwIGaQ&c=n6-cguzQvX_tUIrZOS_4Og&r=fCPRb7QX-vd5bnO9gIJHCiX852SVUtyYX--xtCKtpfk&m=kBjV7CmsaZkV_yYVagS4Dh9xfKYByScSx0FKqzophaU&s=Tn8rAf4VePukV8IRevsto81lt1_ioQ7VnrWEkPQgpEc&e=
> Computers & Geosciences: https://urldefense.proofpoint.com/v2/url?u=http-3A__elsevier.com_locate_cageo_&d=CwIGaQ&c=n6-cguzQvX_tUIrZOS_4Og&r=fCPRb7QX-vd5bnO9gIJHCiX852SVUtyYX--xtCKtpfk&m=kBjV7CmsaZkV_yYVagS4Dh9xfKYByScSx0FKqzophaU&s=Nvr9ibFCzDW0D4YfZslXSJMizH7qlXJJ1or2vQ2SUfo&e=
> Spatial Statistics Society https://urldefense.proofpoint.com/v2/url?u=http-3A__www.spatialstatistics.info&d=CwIGaQ&c=n6-cguzQvX_tUIrZOS_4Og&r=fCPRb7QX-vd5bnO9gIJHCiX852SVUtyYX--xtCKtpfk&m=kBjV7CmsaZkV_yYVagS4Dh9xfKYByScSx0FKqzophaU&s=YJtd04wGq0BOfmJVMv95EK1HXYuq9HXnVs0Z9mrE704&e=
>
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
[[alternative HTML version deleted]]
More information about the R-sig-Geo
mailing list