Verified with ldd that libgdal.so is now linked to: /opt/MrSID/current/Raster_DSDK/lib/libltidsdk.so
Configured Tomcat with: -Djava.library.path=/usr/local/lib64/jni:/opt/MrSID/current/Raster_DSDK/lib and confirmed that LD_LIBRARY_PATH includes the MrSID lib directory.
Restarted Tomcat and tested with both gdalinfo --formats and gdalinfo file.sid, but the MrSID driver still does not show up.
Problem:
Although GDAL seems to be compiled with MrSID support, gdalinfo --formats does not list MrSID, and consequently GeoServer does not expose it either.
Question:
Has anyone successfully compiled and enabled MrSID with GDAL ≥ 3.8.x and GeoServer/Tomcat on SLES 15?
Am I missing a step to ensure the driver is registered and recognized at runtime?
If gdalinfo –formats does not list the MRSid driver, then there is something wrong with the build and you should stop doing any other tests because they will fail. You can ask help for building GDAL with MRSid driver from the gdal-dev mailing list. The driver page MrSID -- Multi-resolution Seamless Image Database — GDAL documentation does not have much information about building. For my mind a better option than trying to use MRSid files with Geoserver (or any other program) is to get rid of MRSid and convert the files into GeoTIFF format. But for that you need GDAL with a working MRSid driver. For example the binaries from https://gisinternals.com/ come with MRSid support.
Where can I write a post with this GDAL + MrSID configuration I created (sorry, I didn’t see the button you mentioned).
It is not really a button but a link. See the image below. The link points to the GitHub repository where the documentation is maintained. There you can make edits into your own fork and then suggest that the edits would be included in the official documentation by creating a pull request. The process is more easy that it may feel, just try it.
A possibly simpler solution than struggling for ages to build GDAL bindings is to use the GeoServer Docker image (-gdal) which has automated this build process for you.