I am intending to run a SNAP processing chain to compute interferometric coherence (including back-geocoding, deburst, coherence estimation, terrain correction) on Linux (OpenSUSE distribution). I get an error, requiring the installation of libgfortran3: ⦠⦠ā org.jblas ERROR Couldnāt load copied link file: java.lang.UnsatisfiedLinkError: /tmp/jblas7960198414784257507/libjblas_arch_flavor.so: libgfortran.so.3: cannot open shared object file: No such file or directory.
On Linux 64bit, you need additional support libraries. You need to install libgfortran3.
For example for debian or Ubuntu, type āsudo apt-get install libgfortran3ā ā¦
libgfortran4 is installed on the servers. Tried reinstalling SNAP latest version, same error. Does SNAP specifically require version 3 of the library, no later version?
Workaround that should work on Debian buster, bullseye and unstable (and possibly Ubuntu and other derivatives): sudo apt-get install jblas.
Explanation: it seems that JBlas code searches for system-wide native libraries before trying to use those provided by the Maven JAR. Thus installing the Debian package, which has the native library correctly compiled, makes everything work. Debian is currently providing version 1.2.4 or JBlas (the latest released), the same used by SNAP. If at some point they go out-of-sync this might stop working. However it seems that JBlas is dormant, so probably there wonāt be new releases soon.
We noticed for other libs also that they the search for native libs does not work as it should. And we compiled them on our own. It seems that something in gernal has changed or several people are doing the same error
I donāt understand, why do you say that the search for native libs does not work as it should? The fact of searching system-wide libraries before those provided by the JAR in this case is beneficial, because the system-wide libraries are more up-to-date and are compiled coherently with the rest of the system. Am I missing something?
Yes, they are more recent, but maybe not compatible anymore with the library used by e.g. SNAP. SNAP or other application are build with certain versions of the libraries and if they are shipped with the application they should be picked up.
the problem of libgfortran3 has been kindly resolved thanks to gnwiii
because ālibfortran3ā from NASAās OCSSW software āworks for usā. The NASA software is distributed as git bundles, but libgfortran.so.3 was added to the git repository after the bundle was created, so you need to download and extract the bundle and then git pull to get libgfortran.so.3 :