#安装pkg-config
sudo apt-get install pkg-config
#安装依赖文件
sudo apt-get install autoconf automake libtool make g++ unzip
sudo apt-get install libgflags-dev libgtest-dev
sudo apt-get install clang libc++-dev
克隆grpc源码
git clone https://gitee.com/niubucai/grpc.git
cd grpc/
git submodule update --init
cd third_party/protobuf
git submodule update --init --recursive #确保克隆子模块,更新第三方源码
=========================================================
如果gitsubmodule update --init 失败,请 如下操作:
git config --global