# Set the RUNPATH of installed shared libraries to "$ORIGIN"

**URL:** https://discourse.vtk.org/t/set-the-runpath-of-installed-shared-libraries-to-origin/6234
**Category:** Development
**Tags:** proposal
**Created:** [July 24, 2021, 9:54am UTC](https://discourse.vtk.org/t/set-the-runpath-of-installed-shared-libraries-to-origin/6234 "2021-07-24T09:54:56Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![kayarre](https://discourse.vtk.org/user_avatar/discourse.vtk.org/kayarre/32/808_2.png) [@kayarre](https://discourse.vtk.org/u/kayarre)
#### Post date: [November 4, 2021, 10:05pm UTC](https://discourse.vtk.org/t/set-the-runpath-of-installed-shared-libraries-to-origin/6234/7 "2021-11-04T22:05:47Z")

</div>

how should this work with libraries like libTBB.so?  
for building vtk its not a problem, but with something donstream uses vtk (vtl built with TBB). the downstream can’t find the TBB library.

I tried setting CMAKE\_INSTALL\_RPATH for TBB and VTK to the install/lib directories. things still only work when I set LD\_LIBRARY\_PATH to the TBB lib directory.

I saw this post [[vtk shared library lookup on linux](https://discourse.vtk.org/t/vtk-shared-library-lookup-on-linux/5997)]([vtk shared library lookup on linux - #3 by Harald\_Scheirich](https://discourse.vtk.org/t/vtk-shared-library-lookup-on-linux/5997/3)). but using `(CMAKE_INSTALL_RPATH $Origin) `

I am a bit confused.

---

_[View the full topic](https://discourse.vtk.org/t/set-the-runpath-of-installed-shared-libraries-to-origin/6234)._
