title: Can link to libboost but cannot execute the executable
body: <p>I have the problem that I can build an executable that is linked to libboost, but when I execute the executable I will get the error that the library is not found.</p>
  
  <p>The boost library is build manual on the computer and linked to the executable.</p>
  
  <p>When executing the executable I will get the error:</p>
  
  <pre><code>error while loading shared libraries: libboost_regex.so.1.64.0: cannot open shared object file: No such file or directory
  </code></pre>
  
  <p>Even when I place the compiler boost library next to the executable, it does not work.</p>
  
  <p>The application is built with the following g++ command:</p>
  
  <pre><code>g++ -o executable -O2 -I /root/filters/boost/boost/ -I /usr/include/mysql/ -lmysqlcppconn -lboost_regex -lmysqlclient -lpthread  -L/root/filters/boost/boost/stage/lib/  -std=c++11  *.cpp
  </code></pre>