I could not install the Geoserver GDAL extension on Debian 12. I followed the instructions on GDAL Image Formats — GeoServer 2.26.x User Manual but I get the following error in the modules tab in the Geoserver admin interface.
Module Name: ImageI/O-Ext GDAL Coverage Extension
Module ID: gs-gdal
Version: 2.26.1
Component: GridCoverage2DReader
Message:
JNI GDAL Wrapper Version: unavailable
java.library.path: /usr/java/packages/lib:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib
The installed GDAL version is as follows:
gdalinfo --version
GDAL 3.6.2, released 2023/01/02
The installed packages related to GDAL are as follows:
apt list --installed | grep gdal
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
gdal-bin/stable,now 3.6.2+dfsg-1+b2 amd64 [installed]
gdal-data/stable,now 3.6.2+dfsg-1 all [installed]
gdal-plugins/stable,now 3.6.2+dfsg-1+b2 amd64 [installed,automatic]
libgdal32/stable,now 3.6.2+dfsg-1+b2 amd64 [installed]
python3-gdal/stable,now 3.6.2+dfsg-1+b2 amd64 [installed]
On the other hand, there is no folder with the version number where GDAL is installed, as the documentation says. There is a folder “/usr/share/gdal” and various files under this folder but no folder with version number. I also could not find the GDAL “lib” folder. I installed the Debian GDAL packages as follows:
apt install libgdal32
apt install gdal-bin
I downloaded the gdal-3.6.0.jar package from Maven Central: org.gdal:gdal and tried to overwrite the gdal-3.2.0.jar in the lib folder.
What am I doing wrong? How can I find the GDAL lib and data folder?