I’ve tried to install HDFView 3.1.2 on my Linux Ubuntu 20.04 laptop and I have downloaded HDFView pre-build binary file from HDFView-3.1.2-ubuntu20_64.tar.gz link.
I didn’t see any error during installation. But it didn’t open at all.
.
possible reasons for that maybe it compiled with 5.4.0-52-generic. I am using
java-1.11.0-openjdk
hdf5-1.10
5.4.0-58-generic
Could you please let me know how should I install HDFView?
I can confirm that the binary doesn’t run on Ubuntu 20.04 LTS:
% /opt/hdfview/bin/HDFView
Error: dl failure on line 534
Error: failed /opt/hdfview/lib/runtime/lib/server/libjvm.so, because /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /opt/hdfview/lib/runtime/lib/server/libjvm.so)
Failed to launch JVM
Google will show that many people using Ubuntu 20.04 LTS (focal fossa) are having problems with 3rd party applications that require GLIBC_2.32'. Ubuntu focal hasGLIBC_2.31’. Upgrading to 20.10 should provide `GLIBC_2.32’ along with the 5.8 kernel (as mentioned in the README file).
exceptionImp.c:32:10: fatal error: jni.h: No such file or directory
32 | #include "jni.h"
| ^~~~~~~
The jni.h file is provided by the jdk. Do you have /usr/lib/jvm/java-11-openjdk-amd64/include/jni.h? If not, you need to install the openjdk-11-jdk package.
If you have jni.h then some investigation is needed to determine why is isn’t found.
PS: You mentioned that you had solved the previous problem, but it isn’t clear
which problem or how you solved it. In my experience, for each person who writes
about a problem there are many others watching for the solution, so it is very helpful if the forum provides a complete record
The “can’t find jni.h” issue sounds like a problem we recently fixed in the develop branch. Try copying develop’s autotools jni file to the m4 directory in your unpacked source.
I am having problems building it on Ubuntu 20.10. Can anybody please provide proper steps to build it succcessfully. Thanks. It is much needed for my academic project.
The permissions set by the alien installation only allow root to use hdfview:
% cd /opt/hdfview
% ls -ld *
drwx------ 2 root root 3 Aug 20 15:48 bin
drwx------ 4 root root 7 Aug 20 15:48 lib
Root privileges should only be used for well-tested and trusted administrative
tools. HDFview is nowhere close to well-tested and trusted and is not an
administration tool – users should fix the permissions before attempting to
use the package.
This is easily corrected by users with basic linux command-line skills, so
is “an excercise left to the reader”. Any reader who didn’t recognize this
problem and knows an efficient solution needs to spend a few evenings
with linuxcommand.org or a similar introduction to the linux command line
until they feel confident about the management of basic file and directory
permissions in linux. Hint: the find command is useful for an efficient
solution.