uDIG

GDAL missing dependency on linux

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: UDIG 1.2.M2
  • Fix Version/s: UDIG 1.2.M6
  • Labels:
    None
  • Environment:
    Ubuntu 7.10 i386, with supplied linux jre (with imageio and gdal support)

Description

WARNING: Native library load failed.java.lang.UnsatisfiedLinkError: /home/craig/dev/jre1.6.0_11_gdal/lib/i386/libgdaljni.so: libnetcdf.so.4: cannot open shared object file: No such file or directory

So we're missing libnetcdf.so.4. Perhaps this was available on the computer of the developer that built the JRE? In which case perhaps it is a simple dependency we need to install.

Activity

Hide
Jody Garnett added a comment -
There are a range of jres prepacked with this stuff; you are supposed to download one and unzip into into your eclipse folder (and make a folder called "jre" that will be used automatically). The instructions are in the release notes here:

http://udig.refractions.net/files/downloads/branches/udig-1.2-M3.html

These instructions list the following selection:
- http://udig.refractions.net/files/downloads/jre/

And provide a direct link to: http://udig.refractions.net/files/downloads/jre/jre1.6.0_11.linux.x86_gdal_ecw_mrsid.tar.gz

So this is a documentation problem? If you view this as fixed please close the bug.
Show
Jody Garnett added a comment - There are a range of jres prepacked with this stuff; you are supposed to download one and unzip into into your eclipse folder (and make a folder called "jre" that will be used automatically). The instructions are in the release notes here: http://udig.refractions.net/files/downloads/branches/udig-1.2-M3.html These instructions list the following selection: - http://udig.refractions.net/files/downloads/jre/ And provide a direct link to: http://udig.refractions.net/files/downloads/jre/jre1.6.0_11.linux.x86_gdal_ecw_mrsid.tar.gz So this is a documentation problem? If you view this as fixed please close the bug.
Hide
Craig Taverner added a comment - - edited
Sorry Jody, I though I made it clear in the bug report I was already using the proper JRE, and if you look at the error you will see that GDAL itself is there, but fails to complete loading because one of it's dependencies is missing.

See the environment statement says: with imageio and *gdal*
Also the error log in the description shows the location of the *gdal library in the JRE*

So it is not a uDIG documentation error, it is a missing dependency. Either some that should be added to the JRE or some package that should be installed on Ubuntu to satisfy that dependency. I've started searching and did find a libncdf3 in my Ubuntu, but not the required *libnetcdf4* that your GDAL is looking for. Perhaps I need to look at GDAL documentation itself?
Show
Craig Taverner added a comment - - edited Sorry Jody, I though I made it clear in the bug report I was already using the proper JRE, and if you look at the error you will see that GDAL itself is there, but fails to complete loading because one of it's dependencies is missing. See the environment statement says: with imageio and *gdal* Also the error log in the description shows the location of the *gdal library in the JRE* So it is not a uDIG documentation error, it is a missing dependency. Either some that should be added to the JRE or some package that should be installed on Ubuntu to satisfy that dependency. I've started searching and did find a libncdf3 in my Ubuntu, but not the required *libnetcdf4* that your GDAL is looking for. Perhaps I need to look at GDAL documentation itself?
Hide
Craig Taverner added a comment -
A little further googling and I can see that a more recent release of Ubuntu has a package with the necessary library. My Ubuntu is 7.10, and the next release 8.06, does have libnetcdf4 available for the OS. So what this might mean is Ubuntu before 8.06 is not supported by the pre-built JRE. Perhaps this is not a serious problem, if very few people are using as old a release as me. Should we just lower the priority of the bug?

Also, we should probably add to the Linux JRE documents that this package is a dependency. Perhaps there are even more?
Show
Craig Taverner added a comment - A little further googling and I can see that a more recent release of Ubuntu has a package with the necessary library. My Ubuntu is 7.10, and the next release 8.06, does have libnetcdf4 available for the OS. So what this might mean is Ubuntu before 8.06 is not supported by the pre-built JRE. Perhaps this is not a serious problem, if very few people are using as old a release as me. Should we just lower the priority of the bug? Also, we should probably add to the Linux JRE documents that this package is a dependency. Perhaps there are even more?
Hide
Simone Giannecchini added a comment -
The linux JRE must be repackaged using the libs found here

https://imageio-ext.dev.java.net/servlets/ProjectDocumentList?folderID=10446&expandFolder=10446&folderID=10446.

It seems that the dependency on netcdf was erroneously added in the previous set of libraries.
Show
Simone Giannecchini added a comment - The linux JRE must be repackaged using the libs found here https://imageio-ext.dev.java.net/servlets/ProjectDocumentList?folderID=10446&expandFolder=10446&folderID=10446. It seems that the dependency on netcdf was erroneously added in the previous set of libraries.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: