# Slicer latest preview release not working on Ubuntu 20?

**URL:** <https://discourse.slicer.org/t/slicer-latest-preview-release-not-working-on-ubuntu-20/25361>\
**Category:** Support\
**Created:** [September 20, 2022, 5:55pm UTC](https://discourse.slicer.org/t/slicer-latest-preview-release-not-working-on-ubuntu-20/25361 "2022-09-20T17:55:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mau\_igna\_06](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mau_igna_06/32/9056_2.png) [@mau\_igna\_06](https://discourse.slicer.org/u/mau_igna_06)\
**Post date:** [September 20, 2022, 5:55pm UTC](https://discourse.slicer.org/t/slicer-latest-preview-release-not-working-on-ubuntu-20/25361/1 "2022-09-20T17:55:32Z")

</div>

Hi. I execute Slicer and get this error message:

```auto
mauro@mauro:~/Escritorio/Slicer-5.1.0-2022-09-19-linux-amd64$ ./Slicer
/home/mauro/Escritorio/Slicer-5.1.0-2022-09-19-linux-amd64/bin/SlicerApp-real: error while loading shared libraries: libitkhdf5_hl-shared-5.3.so.1: cannot open shared object file: No such file or directory

```

---

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [September 20, 2022, 7:02pm UTC](https://discourse.slicer.org/t/slicer-latest-preview-release-not-working-on-ubuntu-20/25361/2 "2022-09-20T19:02:39Z")

</div>

I got this same error after building Slicer this weekend on Arch. Copying the missing library from the build tree fixed the issue. There was a major ITK upgrade, the packaging script should perhaps be optimized.

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [September 20, 2022, 8:00pm UTC](https://discourse.slicer.org/t/slicer-latest-preview-release-not-working-on-ubuntu-20/25361/3 "2022-09-20T20:00:37Z")

</div>

Thanks for the report @mau_igna_06 and the suggested fix @chir.set 👍 I agree this sounds like a packaging script issue.

FWIW, Slicer-5.1.0-2022-09-19-macosx-amd64 runs for me on mac.

---

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [September 24, 2022, 7:47pm UTC](https://discourse.slicer.org/t/slicer-latest-preview-release-not-working-on-ubuntu-20/25361/4 "2022-09-24T19:47:12Z")

</div>

This patch allows to include the missing ITK library in the package :

```auto
diff --git a/CMake/SlicerBlockInstallCMakeProjects.cmake b/CMake/SlicerBlockInstallCMakeProjects.cmake
index b98f948e8f..6fca3cb21e 100644
--- a/CMake/SlicerBlockInstallCMakeProjects.cmake
+++ b/CMake/SlicerBlockInstallCMakeProjects.cmake
@@ -26,6 +26,8 @@ if(NOT "${ITK_DIR}" STREQUAL "" AND EXISTS "${ITK_DIR}/CMakeCache.txt")
   set(CPACK_INSTALL_CMAKE_PROJECTS "${CPACK_INSTALL_CMAKE_PROJECTS};${ITK_DIR};ITK;libraries;/")
   # HDF5 - hdf5_cpp
   set(CPACK_INSTALL_CMAKE_PROJECTS "${CPACK_INSTALL_CMAKE_PROJECTS};${ITK_DIR};ITK;cpplibraries;/")
+ # HDF5 - hdf5_hl
+ set(CPACK_INSTALL_CMAKE_PROJECTS "${CPACK_INSTALL_CMAKE_PROJECTS};${ITK_DIR};ITK;hllibraries;/")
   # HDF5 until ITK4. final, then it can be removed
   set(CPACK_INSTALL_CMAKE_PROJECTS "${CPACK_INSTALL_CMAKE_PROJECTS};${ITK_DIR};ITK;Unspecified;/")

```

Hopefully, it may get fixed in master.
