title: dyld: Library not loaded ... Reason: Image not found
body: <p>When trying to run an executable I've been sent in Mac OS X, I get the following error</p>
  
  <pre><code>dyld: Library not loaded: libboost_atomic.dylib
    Referenced from: /Users/"Directory my executable is in"
    Reason: image not found
  Trace/BPT trap:5
  </code></pre>
  
  <p>I have installed the boost libraries and they are located in <code>/opt/local/lib</code>. I think the problem has something to do with the executable only looking in the directory it is in as when I paste the 'libboost_atomic.dylib' in there, it doesn't mind about it anymore. Unfortunately then it complains it can't find the next boost library.</p>
  
  <p>Is there an easy way to fix this?</p>