Google protobuf的安裝

下載: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 

若是沒有報錯,說明安裝正常。

相關文章
相關標籤/搜索