4

I'm trying to get GDAL extensions to work in a Geoserver standalone installation. I'm following these instructions:

https://docs.geoserver.org/latest/en/user/data/raster/gdal.html

Upon starting Geoserver, I can see that GDAL has been installed. It doesn't seem to work properly though:

enter image description here

I'm on Ubuntu 16.04 and gdal-bin and libgdal-java are installed. How can I fix this?

For the sake of completion, here is the error message in text form:

JNI GDAL Wrapper Version: unavailable
2
  • Those instructions are valid for GeoServer 2.16.x onwards, what version of GeoServer are you using? Commented Aug 12, 2019 at 9:57
  • @AndreaAime I'm using 2.15.2. Can you direct me to the proper instructions? Thanks for the reply.
    – Fang
    Commented Aug 12, 2019 at 10:02

2 Answers 2

3

For the stable series of GeoServer (currently 2.15.x) you can use these instructions: https://docs.geoserver.org/stable/en/user/data/raster/gdal.html

The properly tested packages are the ones of the custom GDAL 1.9.2 build, there are hints on how to use a different/newer version too, but it's not recommended.

3
  • Thanks Andrea. I've tried to follow these instructions before, but I'm not able to install the native libraries since they're only offered up to Ubuntu 12. Do I have to compile GDAL myself for Ubuntu 16.04?
    – Fang
    Commented Aug 12, 2019 at 10:11
  • 1
    That's odd, I am on a recent Linux Mint and a few months ago the old libs were still working. Are you sure you don't have the newer GDAL libraries in the path, before the ones that GeoServer should be running with? Commented Aug 12, 2019 at 12:39
  • Thanks again for the reply. I eventually figured out what's wrong: I was starting Geoserver with a systemd unit and since that forks its own process, it was ignoring my environment variables. Now, everything is up and running.
    – Fang
    Commented Aug 13, 2019 at 11:23
2

I want to post some additional info for people who might run into problems installing the GDAL extensions on Ubuntu 16.04, following the instructions on https://docs.geoserver.org/stable/en/user/data/raster/gdal.html

These are my observations:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.