您的位置:首页 > 编程语言 > Go语言

Google protobuf的安装 

2017-10-27 00:00 316 查看
下载:

http://download.openpkg.org/components/cache/protobuf/protobuf-2.5.0.tar.bz2

tar -xf protobuf-2.5.0.tar.bz2

cd protobuf-2.5.0

编译安装

./configure

make

make check

make install

继续安装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

如果没有报错,说明安装正常。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: