MacOS安装gRPC C++

从源码安装gRPC C++

环境准备

 $ [sudo] xcode-select --install

 $ brew install autoconf automake libtool shtool

 $ LIBTOOL=glibtool LIBTOOLIZE=glibtoolize make

下载gRPC源码

 $ git clone -b RELEASE_TAG_HERE https://github.com/grpc/grpc
 $ cd grpc
 $ git submodule update --init

编译并安装

$ mkdir -p cmake/build
$ cd cmake/build
$ cmake ../..
$ make
posted @ 2021-12-21 17:37  warm3snow  阅读(670)  评论(0编辑  收藏  举报