[gdal-dev] how to completely remove gdal from Ubuntu 20.04 and install from scratch
Jorge Gustavo Rocha
jgr at osgeopt.pt
Tue Sep 29 15:10:13 PDT 2020
Hi,
I had the same problem. I've update my laptop to 20.04 and I need to
rebuild proj and gdal.
I've removed all old gdal packages and I've cleaned up /usr/local/lib,
to ensure that no previous gdal libraries are around.
But I missed an old libproj package! You have to make ensure that you
also clean up former libproj packages.
sudo apt purge libproj15
Gerald, please try:
ldd /usr/local/bin/ogrinfo
In my case, there were two libproj on the output
jgr at zoe:~/dev/cpp/gdal/gdal$ ldd /usr/local/bin/ogrinfo
(...)
libproj.so.19 => /usr/local/lib/libproj.so.19 (0x00007fa94f129000)
(...)
libproj.so.15 => /usr/lib/x86_64-linux-gnu/libproj.so.15
(0x00007fa94df36000)
Good luck,
Jorge Gustavo
On 08/08/20 01:35, Gerald Nelson wrote:
>
>
> I have both a mac and a linux box with Ubuntu 20.04. gdal on the mac is
> installed through home brew. gdal on the linux box has been installed
> both from source with the usual configure, make, make install and with
> sudo apt-get install gdal-bin. Both completed successfully and sudo
> apt-get install gdal-bin returned GDAL 3.1.2, released 2020/07/07.
>
> When I attempt to install or upgrade sf, rgdal, or terra I get similar
> error messages. They come after
>
> ** testing if installed package can be loaded from temporary location
>
> The messages are
>
> free(): invalid size
>
> Aborted (core dumped).
>
>
>
> Another thread suggested that there should not be multiple versions of
> gdal on a machine. I didn’t intend for there to be but I had GDAL 3.0.7
> originally on the linux box before installing GDAL3.1.2 so it is
> possible that there may be bits of the older version around.
>
>
>
> I can’t find any good directions for how to do a deep clean, or for that
> matter to install gdal on Ubuntu 20.04 so I was hoping to get some
> directions here.
>
>
>
> Gerald C. Nelson
>
> Professor Emeritus, UIUC
>
> +1 217-390-7888 (cell)
>
> +1 970-639-2079 (land line)
>
> Skype: jerrynelson
>
> http://bit.ly/1arho7d
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
>
--
OSGeo Portugal
NIF: 509588190
email: geral at osgeopt.pt
https://www.osgeopt.pt/
Próximo evento: SASIG 2017, 20 a 22 de novembro, Porto
Mais informações: http://osgeopt.pt/sasig2017/
More information about the gdal-dev
mailing list