<div dir="ltr">Hi Sandro,<div><br></div><div>Thank you, I will try the workaround</div><div><br></div><div>BUT I'm wondering: why would you want to upgrade to 3.1.2 when the<br>latest PostGIS version in the 3.1 branch is 3.1.8 ?<br></div><div> -- We started with the upgrade at a time when 3.1.2 was the latest version. We will try to add the newer version in future upgrades.</div><div><br></div><div>Thanks,</div><div>Nikhil</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 14, 2023 at 5:08 PM Sandro Santilli <<a href="mailto:strk@kbt.io">strk@kbt.io</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">On Fri, Apr 14, 2023 at 01:29:02PM +0530, Nikhil Shetty wrote:<br>
<br>
> geo=# alter extension postgis update to '3.1.2';<br>
> ERROR:  could not access file "$libdir/postgis-2.5": No such file or directory<br>
<br>
[...]<br>
<br>
> We removed the old 2.5.4 packages and installed 3.1.2<br>
> <br>
> ls -l /usr/pgsql-10/lib | grep postgis<br>
> <br>
> -rwxr-xr-x 1 root root 1047128 Jun 29  2021 *postgis*-3.so<br>
> -rwxr-xr-x 1 root root  850416 Jun 29  2021 *postgis*_raster-3.so<br>
> -rwxr-xr-x 1 root root  435656 Jun 29  2021 *postgis*_sfcgal-3.so<br>
> -rwxr-xr-x 1 root root  565008 Jun 29  2021 *postgis*_topology-3.so<br>
<br>
A quick workaround should be something along these lines:<br>
<br>
  for f in $('ls' /usr/pgsql-10/lib/*postgis*-3.so); do<br>
    l=$(echo "$f" | sed 's/-3\./2.5./')<br>
    ln -vs "$f" "$l"<br>
  done<br>
<br>
BUT I'm wondering: why would you want to upgrade to 3.1.2 when the<br>
latest PostGIS version in the 3.1 branch is 3.1.8 ?<br>
<br>
I'm asking because according to the NEWS file the bug you report<br>
was fixed in 3.1.5:<br>
<br>
  <a href="https://git.osgeo.org/gitea/postgis/postgis/src/tag/3.1.5/NEWS#L12" rel="noreferrer" target="_blank">https://git.osgeo.org/gitea/postgis/postgis/src/tag/3.1.5/NEWS#L12</a><br>
<br>
--strk;<br>
_______________________________________________<br>
postgis-devel mailing list<br>
<a href="mailto:postgis-devel@lists.osgeo.org" target="_blank">postgis-devel@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-devel" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-devel</a><br>
</blockquote></div>