# vtk shared library lookup on linux

**URL:** https://discourse.vtk.org/t/vtk-shared-library-lookup-on-linux/5997
**Category:** Support
**Created:** [June 14, 2021, 7:23pm UTC](https://discourse.vtk.org/t/vtk-shared-library-lookup-on-linux/5997 "2021-06-14T19:23:05Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Harald\_Scheirich](https://discourse.vtk.org/user_avatar/discourse.vtk.org/harald_scheirich/32/3552_2.png) [@Harald\_Scheirich](https://discourse.vtk.org/u/Harald_Scheirich)
#### Post date: [June 14, 2021, 8:06pm UTC](https://discourse.vtk.org/t/vtk-shared-library-lookup-on-linux/5997/3 "2021-06-14T20:06:45Z")

</div>

Thanks, setting that reports that the vtk libraries that it’s finding are found via `RUNPATH`

e.g.

```auto
       411: find library=libvtkCommonCore-9.0.so.1 [0]; searching
       411: search path=/mnt/c/Work/projects/imstk/build-linux/install/lib (RUNPATH from file install/bin/GeometryTests)
       411: trying file=/mnt/c/Work/projects/imstk/build-linux/install/lib/libvtkCommonCore-9.0.so.1

```

whereas the missing ones just don’t

```auto
      411: find library=libvtkCommonComputationalGeometry-9.0.so.1 [0]; searching
       411: search cache=/etc/ld.so.cache
       411: search path=/lib/x86_64-linux-gnu/tls/haswell/x86_64:/lib/x86_64-linux-gnu/tls/haswell:/lib/x86_64-linux-gnu/tls/x86_64:/lib/x86_64-linux-gnu/tls:/lib/x86_64-linux-gnu/haswell/x86_64:/lib/x86_64-linux-gnu/haswell:/lib/x86_64-linux-gnu/x86_64:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu/tls/haswell/x86_64:/usr/lib/x86_64-linux-gnu/tls/haswell:/usr/lib/x86_64-linux-gnu/tls/x86_64:/usr/lib/x86_64-linux-gnu/tls:/usr/lib/x86_64-linux-gnu/haswell/x86_64:/usr/lib/x86_64-linux-gnu/haswell:/usr/lib/x86_64-linux-gnu/x86_64:/usr/lib/x86_64-linux-gnu:/lib/tls/haswell/x86_64:/lib/tls/haswell:/lib/tls/x86_64:/lib/tls:/lib/haswell/x86_64:/lib/haswell:/lib/x86_64:/lib:/usr/lib/tls/haswell/x86_64:/usr/lib/tls/haswell:/usr/lib/tls/x86_64:/usr/lib/tls:/usr/lib/haswell/x86_64:/usr/lib/haswell:/usr/lib/x86_64:/usr/lib (system search path)
       411: trying file=/lib/x86_64-linux-gnu/tls/haswell/x86_64/libvtkCommonComputationalGeometry-9.0.so.1
       411: trying file=/lib/x86_64-linux-gnu/tls/haswell/libvtkCommonComputationalGeometry-9.0.so.1
       411: trying file=/lib/x86_64-linux-gnu/tls/x86_64/libvtkCommonComputationalGeometry-9.0.so.1
... 

```

and when i set LD\_LIBRARY\_PATH i get this result …

```auto
       493: find library=libvtkCommonComputationalGeometry-9.0.so.1 [0]; searching
       493: search path=/mnt/c/Work/projects/imstk/build-linux/install/lib (RUNPATH from file install/bin/GeometryTests)
       493: trying file=/mnt/c/Work/projects/imstk/build-linux/install/lib/libvtkCommonComputationalGeometry-9.0.so.1
       493:

```

---

_[View the full topic](https://discourse.vtk.org/t/vtk-shared-library-lookup-on-linux/5997)._
