Ubuntu安装Protocol Buffer

https://github.com/google/protobuf/releases/下载Source code

安装 Protocol Buffer 依赖

sudo apt install autoconf automake libtool curl

解压,进入解压后的文件夹,运行 autogen.sh 脚本

./autogen.sh

运行 configure.sh 脚本

./configure

编译未编译的依赖包

make

检查依赖包是否完整

make check

安装

sudo make install

配置动态链接库

sudo ldconfig

检查 Protocol Buffer 是否安装成功

protoc --version

猜你喜欢

转载自blog.csdn.net/twilightdream/article/details/72953338