Centos安裝protobuf

makefile時遇到protoc:command not found,說明缺少libprotoc包,手動安裝probuf包

protobuf下載地址:https://github.com/google/protobuf/archive/v2.6.1.zip

unzip protobuf-2.6.1.zip

cdprotobuf-2.6.1

./autogen.sh

./configure

make && make install

如果在編譯的過程中遇到 ‘kEmptyString’ is not a member of ‘google::protobuf::internal的問題,請更新protobuf的版本(我是在安裝protobuf-2.4.1時遇到這個問題的),如果過沒有遇到請無視


資料:http://blog.csdn.net/xiexievv/article/details/47396725

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章