下载:python
http://download.openpkg.org/components/cache/protobuf/protobuf-2.5.0.tar.bz2ui
tar -xf protobuf-2.5.0.tar.bz2google
cd protobuf-2.5.0component
编译安装get
./configure io
make 编译
make check test
make install import
继续安装protobuf的python模块(若是不用python,可跳过这一步) 下载
#cd ./python
#python setup.py build
#python setup.py test
#python setup.py install
安装完成,验证Linux命令
#protoc –version
验证Python模块是否被正确安装
#python
>>>import google.protobuf
若是没有报错,说明安装正常。