title: Cannot open shared object file: No such file or directory; Running or Debugging in Eclipse
body: <p>On Ubuntu, I have a C++ app in Eclipse. The application compiles fine and I can run the app from the command line.</p>
  
  <p>But when I try to debug it or run it with Eclipse, the <strong>error :</strong></p>
  
  <p><code>"Cannot open shared object file: No such file or directory"</code> is thrown on a shared library.</p>
  
  <p>I've set LD_LIBRARY_PATH in my bashrc file and also set an LD_LIBRARY_PATH environment variable in both the Run Configuration and Debug Configuration to :</p>
  
  <blockquote>
    <p>/home/behlingb/Documents/api_libs/FileGDB_API/lib</p>
  </blockquote>
  
  <p>What else am I missing here to get Eclipse to run this?</p>
  
  <p><br><br>
  <strong>UPDATE</strong></p>
  
  <p>There is only one shared object file this application requires, and that file is from a 3rd party API download. I just found that if I place the shared object inside the directory the executable is in, it will debug in Eclipse. Is there a way to specify a different directory so I dont have to copy the file for every project?</p>