1.下载http://code.google.com/p/protobuf/downloads/list 2.解压 Shell代码
- tar jxvf protobuf-2.4.1.tar.bz2 protobuf
3.编译 Shell代码
- $ ./configure
- $ make
- $ make install
4.使用 Shell代码
- /usr/bin/protoc /home/jiangrongyong/work/proto/*.proto --proto_path=/home/jiangrongyong/work/proto --java_out=/home/jiangrongyong/work/proto-output
protobuf安装后出现libprotobuf.so.6 not found after installation
http://yuu1987.iteye.com/blog/1240712