Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when attempting to start RSDB under Ubuntu 22.04 with pre-build libgdal-java and, alternatively, custom GDAL build #68

Open
16EAGLE opened this issue Jun 13, 2024 · 0 comments

Comments

@16EAGLE
Copy link

16EAGLE commented Jun 13, 2024

Thanks a lot for developing RSDB open-source!

We are trying to deploy RSDB on a Ubuntu 22.04.4 LTS machine. Due to the issue of libgdal-java not being pre-compiled for this OS version, I followed your Wiki suggestion to manually copy libgdalalljni.so and gdal.jar to /usr/lib/jni/ and /usr/share/java/ after extracting them from the package you are referencing in the wiki.

Unfortunately, executing ./rsdb.sh server resulted in the following error:

java.lang.UnsatisfiedLinkError: /usr/lib/jni/libgdalalljni.so: libgdal.so.30: cannot open shared object file: No such file or directory
ERROR sever not started java.lang.UnsatisfiedLinkError: 'long org.gdal.osr.osrJNI.new_SpatialReference__SWIG_0(java.lang.String)'  server.RunServer.main(RunServer.java:21)

I double-checked the files being in the correct directories and changed permissions and ownerships in case those were causing the issue, to no avail.

Hence, I went on to create a custom build of GDAL, instead, using a clean Ubuntu 22.04.4 LTS system with no pre-installs other than the packages shipped by default and every dependency suggested in your very helpful GDAL build guide which I followed for completing the build.

Unfortunately, running ./rsdb.sh server now results in the following error:

ERROR sever not started java.lang.NoClassDefFoundError: org/gdal/osr/SpatialReference   server.RunServer.main(RunServer.java:21)

Could you give me any insights of what may be missing from the GDAL build to make RSDB work or point me into a direction of what else may be the problem?

Thank you very much in advance!

@16EAGLE 16EAGLE changed the title Error when attempting to start RSDB under Ubuntu 22.04 with per-build libgdal-java and, alternatively, custom GDAL build Error when attempting to start RSDB under Ubuntu 22.04 with pre-build libgdal-java and, alternatively, custom GDAL build Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant