title: Boost library missing at runtime (Can compile. Can't run)
body: <p>This is a pretty entry level question but I just can't seem to find any relevant answers.</p>
  
  <p>I can compile <a href="http://www.boost.org/doc/libs/1_36_0/doc/html/boost_asio/tutorial/tutdaytime1/src.html" rel="nofollow">this</a> no problem using the following command:</p>
  
  <pre><code>g++ client.cpp -o client -lboost_system -lpthread
  </code></pre>
  
  <p>When I try to run the program I get the following error:</p>
  
  <pre><code>./client 
  ./client: error while loading shared libraries: libboost_system.so.1.58.0: cannot open shared object file: No such file or directory
  </code></pre>
  
  <p>this file exists: /usr/local/lib/libboost_system.so</p>
  
  <p>What am I doing wrong here?</p>