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

**URL:** https://discourse.slicer.org/t/slicerapp-real-error-while-loading-shared-libraries-cannot-open-shared-object-file-no-such-file-or-directory/33738
**Category:** Support
**Created:** [January 11, 2024, 5:21pm UTC](https://discourse.slicer.org/t/slicerapp-real-error-while-loading-shared-libraries-cannot-open-shared-object-file-no-such-file-or-directory/33738 "2024-01-11T17:21:44Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![tbillah](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/tbillah/32/4139_2.png) [@tbillah](https://discourse.slicer.org/u/tbillah)
#### Post date: [January 11, 2024, 5:21pm UTC](https://discourse.slicer.org/t/slicerapp-real-error-while-loading-shared-libraries-cannot-open-shared-object-file-no-such-file-or-directory/33738/1 "2024-01-11T17:21:44Z")

</div>

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.?

---

<div class="post-metadata">

### Author: ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)
#### Post date: [January 11, 2024, 6:28pm UTC](https://discourse.slicer.org/t/slicerapp-real-error-while-loading-shared-libraries-cannot-open-shared-object-file-no-such-file-or-directory/33738/2 "2024-01-11T18:28:20Z")

</div>

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](https://slicer.readthedocs.io/en/latest/user_guide/getting_started.html#fedora)

---

<div class="post-metadata">

### Author: ![tbillah](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/tbillah/32/4139_2.png) [@tbillah](https://discourse.slicer.org/u/tbillah)
#### Post date: [January 11, 2024, 6:39pm UTC](https://discourse.slicer.org/t/slicerapp-real-error-while-loading-shared-libraries-cannot-open-shared-object-file-no-such-file-or-directory/33738/3 "2024-01-11T18:39:43Z")

</div>

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

---

<div class="post-metadata">

### Author: ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)
#### Post date: [January 11, 2024, 6:41pm UTC](https://discourse.slicer.org/t/slicerapp-real-error-while-loading-shared-libraries-cannot-open-shared-object-file-no-such-file-or-directory/33738/4 "2024-01-11T18:41:02Z")

</div>

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

---

<div class="post-metadata">

### Author: ![tbillah](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/tbillah/32/4139_2.png) [@tbillah](https://discourse.slicer.org/u/tbillah)
#### Post date: [January 11, 2024, 9:32pm UTC](https://discourse.slicer.org/t/slicerapp-real-error-while-loading-shared-libraries-cannot-open-shared-object-file-no-such-file-or-directory/33738/5 "2024-01-11T21:32:37Z")

</div>

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

---

<div class="post-metadata">

### Author: ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)
#### Post date: [January 11, 2024, 9:49pm UTC](https://discourse.slicer.org/t/slicerapp-real-error-while-loading-shared-libraries-cannot-open-shared-object-file-no-such-file-or-directory/33738/6 "2024-01-11T21:49:45Z")

</div>

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