从https://github.com/protocolbuffers/protobuf/releases/latest下载源码包 编译安装命令: $./configure--prefix="安装目录"$ make $ make check $ sudo make install $ sudo ldconfig# refresh shared library cache.
1.需要安装Protocol Buffer 直接:apt-get install protobuf-compiler 安装完毕后,进入解压目录的Python目录,执行python setup.py install;安装python的protobuf库即可。 2.可以查询到它的大致用法 pijing@ubuntu:~/protobuffer$ protoc -h Usage: protoc [OPTION] PROTO_FILES Parse PROTO_FILES and generate output...