protobuf安装
-
安装所需工具:
`sudo apt-get install autoconf automake libtool curl make g++ unzip
-
解压压缩包:
unzip protobuf-master.zip
-
进入解压后的文件夹:
cd protobuf-master
-
自动生成configure配置文件:
./autogen.sh
-
配置环境:
./configure
-
编译源代码(时间比较长):
make
-
安装:
sudo make install
-
刷新动态库:
sudo ldconfig
注意:如果使用vscode远程连接ubuntu开发,则需要安装扩展。