<div dir="ltr"><div>Thank you Fernando, Chris, and Even,</div><div><br></div><div>I tried what Fernando suggested. The /usr/bin/gdalinfo and /bin/gdalinfo files have the same inode number and the same checksums, which suggests that they are, in fact, the same.</div><div><br></div><div>However, I noticed that when I enter /usr/bin/gdalinfo --version in the terminal, I get:</div><div><br></div><div style="margin-left:40px">GDAL 3.10.0dev-1250e96221-dirty, released 2024/08/29 (debug build)</div><div style="margin-left:40px"><br></div><div>Same as if I use /bin/gdalinfo. Whereas, if I run gdalinfo from the QGIS Processing Toolbox, the log shows GDAL having a different version (3.8.4 instead of 3.10):</div><div><br></div><div style="margin-left:40px">QGIS version: 3.34.4-Prizren<br>Qt version: 5.15.13<br>Python version: 3.12.2<br>GDAL version: 3.8.4<br>GEOS version: 3.12.1-CAPI-1.18.1<br>PROJ version: Rel. 9.4.0, March 1st, 2024</div><div><div><div><div><br></div><div></div><div>I followed Even's suggestion and ran<br><br></div><div><div style="margin-left:40px">$ ldd /bin/qgis.bin | grep gdal<br></div></div><div><br><div style="margin-left:40px">libgdal.so.34 => /lib/x86_64-linux-gnu/libgdal.so.34 (0x00007a0581a00000)<br></div><br></div>But I'm not sure what to do with that information.<br><br>So now I'm thoroughly confused. I tried running <br><br><div style="margin-left:40px">$ sudo find -name gdalinfo</div><div style="margin-left:40px"><br></div><div style="margin-left:40px">./home/andrew/.local/share/Trash/files/apps.10/gdalinfo<br>./home/andrew/src/gdal/build/apps/gdalinfo<br>./usr/local/share/bash-completion/completions/gdalinfo<br>./usr/share/bash-completion/completions/gdalinfo<br>./usr/bin/gdalinfo</div><div style="margin-left:40px"><br></div>I tried running these other versions of gdal, and still got version "GDAL 3.10.0dev-1250e96221-dirty", or got a Permission Denied message (even if I was running as root, which is also weird). Where is QGIS's version of gdalinfo hiding? </div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 23, 2024 at 9:11 AM Fernando M. Roxo da Motta <<a href="mailto:petro@roxo.org">petro@roxo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sun, 22 Sep 2024 20:27:32 -0700, Andrew Plowright via QGIS-User<br>
<<a href="mailto:qgis-user@lists.osgeo.org" target="_blank">qgis-user@lists.osgeo.org</a>> wrote:<br>
<br>
<br>
> I do indeed:<br>
> <br>
> /usr/bin/gdalinfo<br>
> /bin/gdalinfo<br>
> <br>
<br>
This does not mean that you have two different 'gdalinfo' installed<br>
in your system. I think many modern Linux distribution sysmlink<br>
'/bin' to '/usr/bin'. Try to check it. Ex:<br>
<br>
$ ls -ld /bin<br>
lrwxrwxrwx 1 root root 7 out 12 2020 /bin -> usr/bin/<br>
<br>
<br>
Another way to check if both binaries are identical or not you can use<br>
(at least) two approaches:<br>
<br>
$ md5sum /usr/bin/gdalinfo /bin/gdalinfo<br>
6860ebde8ce3109c9b4aa15a6460d598 /usr/bin/gdalinfo<br>
6860ebde8ce3109c9b4aa15a6460d598 /bin/gdalinfo<br>
<br>
If they have the same signature they are the same, even if installed at<br>
different places.<br>
<br>
$ ls -li /usr/bin/gdalinfo /bin/gdalinfo<br>
135464 -rwxr-xr-x 1 root root 14488 mar 29 2020 /bin/gdalinfo*<br>
135464 -rwxr-xr-x 1 root root 14488 mar 29 2020 /usr/bin/gdalinfo*<br>
<br>
That first number (135464) is the inode number of the file, if they are<br>
the same, the files are absolutely the same.<br>
<br>
<br>
> I suppose that with the -DCMAKE_INSTALL_PREFIX:PATH=/usr parameter,<br>
> this means that the version of GDAL that I built was in<br>
> /usr/bin/gdalinfo?<br>
> <br>
> Is there any way to determine where QGIS is looking for GDAL? If that<br>
> is indeed the problem, is there a way to redirect QGIS towards a<br>
> different installation of GDAL?<br>
<br>
If they are the same file it make no difference. If different files<br>
the order will be that of the PATH environment variable.<br>
<br>
There is a script named 'whereiz' at:<br>
<br>
<a href="http://docstore.mik.ua/orelly/unix/upt/ch04_10.htm" rel="noreferrer" target="_blank">http://docstore.mik.ua/orelly/unix/upt/ch04_10.htm</a><br>
<br>
That search the PATH environment variable for the given command. For<br>
example:<br>
<br>
$ whereiz gdalinfo<br>
/usr/bin/gdalinfo /bin/gdalinfo<br>
<br>
<br>
In my case the '/usr/bin/' appears first in the PATH variable.<br>
<br>
<br>
HTH<br>
<br>
<br>
<br>
<br>
<br>
Roxo<br>
<br>
-- <br>
---------------- Non luctari, ludare -------------------+ WYSIWYG<br>
Fernando M. Roxo da Motta <<a href="mailto:petro@roxo.org" target="_blank">petro@roxo.org</a>> | Editor?<br>
Except where explicitly stated I speak on my own behalf.| VI !!<br>
PU5RXO | PX5Q6048 | I see text,<br>
------------ Quis custodiet ipsos custodes?-------------+ I get text!<br>
<br>
</blockquote></div>