ubuntu18.04安裝protobuf

安裝步驟

sudo apt-get install autoconf automake libtool curl make g++ unzip

git clone https://github.com/protocolbuffers/protobuf.git

cd protobuf

git submodule update --init --recursive

./autogen.sh

./configure

make

//可不檢查,沒影響
make check

sudo make install

sudo ldconfig # refresh shared library cache.

測試

protoc --version //版本號,輸出即可
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章