title: libthrift-0.9.1.so: cannot open shared object file: No such file or directory
body: <p>I have installed <code>thrift 0.9.1</code> using the git repository.
  After building thrift I started the precompiled cpp Server and and the php client. This precompiled examples worked fine. </p>
  
  <p>Now I am trying to compile my own cpp Server by following this tutorial (<a href="http://wiki.apache.org/thrift/ThriftUsageC++" rel="nofollow">http://wiki.apache.org/thrift/ThriftUsageC++</a>). 
  I used:</p>
  
  <p><code>g++ -DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H -Wall -I/usr/local/include/thrift *.cpp -L/usr/local/lib -lthrift -o something</code></p>
  
  <p>to compile the server which worked without errors.</p>
  
  <p>When I execute the server by typing <code>./something</code> I get <code>error while loading shared libraries: libthrift-0.9.1.so: cannot open shared object file: No such file or directory</code>.</p>
  
  <p>In the lib directory are the following files:</p>
  
  <ul>
  <li>libthrift.a</li>
  <li>libtrift.la</li>
  <li>libthrift.so</li>
  <li>libtthrift-0.9.0.so</li>
  <li>libtthrift-0.9.1.so</li>
  </ul>
  
  <p>There are also <code>libthrift_c.glib.a</code>, <code>libthriftnb.a</code> and <code>libthriftz.a</code> and the files which belong to them, but I think they are not important for this error.</p>
  
  <p>Somebody knows what's the fault?</p>
  
  <p>Thx for any help</p>