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