# Error - dyld: Library not loaded

**URL:** <https://root-forum.cern.ch/t/error-dyld-library-not-loaded/39504>\
**Category:** Newbie\
**Created:** [May 20, 2020, 1:05am UTC](https://root-forum.cern.ch/t/error-dyld-library-not-loaded/39504 "2020-05-20T01:05:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amrutha](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/ba9def/32.png) [@amrutha](https://root-forum.cern.ch/u/amrutha)\
**Post date:** [May 20, 2020, 1:05am UTC](https://root-forum.cern.ch/t/error-dyld-library-not-loaded/39504/1 "2020-05-20T01:05:19Z")

</div>

Hi,

I’m trying to run an executable on my Mac and I’m getting the following runtime error:

dyld: Library not loaded: libDynamicTTree.dylib  
Referenced from: /Users/amruthakrishna/root/summer2\_RA/Lab5015Analysis/./bin/analyzeTOFPET2\_new.exe  
Reason: image not found  
Abort trap: 6

I’m a newbie to ROOT and I’m not able to understand what’s going wrong. Any help would be greatly appreciated.

\_ROOT Version: 6.18/04  
\_Platform: macOS 10.14.6

Thanks,  
Amrutha

---

<div class="post-metadata">

**Author:** ![pcanal](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pcanal/32/12439_2.png) [@pcanal](https://root-forum.cern.ch/u/pcanal)\
**Post date:** [May 21, 2020, 4:29pm UTC](https://root-forum.cern.ch/t/error-dyld-library-not-loaded/39504/2 "2020-05-21T16:29:11Z")

</div>

You need to help the executable to find your library, for example by setting the environment variable DYLD\_LIBRARY\_PATH to include the directory in which libDynamicTTree.dylib is located.
