# Loading a library from a script

**URL:** <https://root-forum.cern.ch/t/loading-a-library-from-a-script/24306>\
**Category:** ROOT\
**Created:** [April 3, 2017, 10:21pm UTC](https://root-forum.cern.ch/t/loading-a-library-from-a-script/24306 "2017-04-03T22:21:03Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![ksmith](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ksmith/32/12567_2.png) [@ksmith](https://root-forum.cern.ch/u/ksmith)\
**Post date:** [April 5, 2017, 12:18pm UTC](https://root-forum.cern.ch/t/loading-a-library-from-a-script/24306/9 "2017-04-05T12:18:50Z")

</div>

> [@Danilo](#):
>
> They need to be in the LD\_LIBRARY\_PATH. Usually the best place is right next to the libraries as we do in ROOT or as the LHC experiments do.

This won’t work as many of the users are on Mac OS X 10.12 and have System Integrity Protection enabled ([ROOT Dynamic Library Path - #5 by ksmith](https://root-forum.cern.ch/t/root-dynamic-library-path/24305/5))

> [@Danilo](#):
>
> this looks like a different question related to unloading: do you mind opening another thread about it ?

I’d be happy to.

---

_[View the full topic](https://root-forum.cern.ch/t/loading-a-library-from-a-script/24306)._
