问题:test@test:~/thrift-0.10.0$ thrift
thrift: error while loading shared libraries: libthriftc.so.0: cannot open shared object file: No such file or directory
解决方法:输入:$sudo ldconfig
test@test:~/thrift-0.10.0$ sudo ldconfig
test@test:~/thrift-0.10.0$ thrift
Usage: thrift [options] file
Use thrift -help for a list of options
test@test:~/thrift-0.10.0$ thrift -version
Thrift version 0.10.0