SlicerApp-real: error while loading shared libraries: * : cannot open shared object file: No such file or directory

We are testing Slicer on CentOS 9. We downloaded both 4.10.2 and 5.2.2 but ran into libraries deficit:

Slicer-4.10.2-linux-amd64/bin/SlicerApp-real: error while loading shared libraries: libnsl.so.1: cannot open shared object file: No such file or directory

Slicer-5.2.2-linux-amd64/bin/SlicerApp-real: error while loading shared libraries: libGLU.so.1: cannot open shared object file: No such file or directory

We thought Slicer works off the shelf. Do you no longer ship necessary libraries in Slicer-*-linux-amd64/lib directory? Or is it that we need to set LD_LIBRARY_PATH to this directory before launching Slicer?

If neither is the case, should we yum install mesa-libGL etc.?

These are fairly old versions of the slicer. I am not sure if anyone has tested them with Centos9. As per instructions for Fedora, you need to install libglu1.

https://slicer.readthedocs.io/en/latest/user_guide/getting_started.html#fedora

Thanks. What is the newest version that we should use?

5.6.1 has been released two months ago. I would start with that.

It was not a Slicer version issue. It appears that Slicer does not ship libGLU and libsnl. So we had to do:

yum install -y mesa-libGLU libnsl

Yes, I think it is expected given the Fedora instructions I shared.