看到目前grpc的安装攻略基本上都过时了,所以写了本教程。
安装:
- 安装各种依赖包:
a) sudo apt-get install autoconf automake libtool make g++ unzip
b) sudo apt-get install libgflags-dev libgtest-dev
c) sudo apt-get install clang libc+±dev - git clone https://github.com/grpc/grpc.git
- cd grpc
- ./test/distrib/cpp/run_distrib_test_cmake.sh
测试:
- cd /usr/apt/grpc/examples/cpp/helloworld/cmake/build
- ./ greeter_server
- ./ greeter_client
看到hello world则为成功
1416

被折叠的 条评论
为什么被折叠?



