1. configure compile and install protobuf-2..6.1.tar.gz
tar zxf protobuf-2.6.1.tar.gz
cd protobuf-2.6.1
./configure
make
make insall
2. check library so file in /usr/local/lib
sure, they are there.
3. run protoc
protoc: error while loading shared libraries: libprotoc.so.9: cannot open shared object file: No such file or directory
The solution:
run ldconfig