GRPC: set up..

get the grpc source file.. 

 1 git clone https://github.com/grpc/grpc
 2 git submodule update --init --recursive
 3 cd third-party/protobuf
 4 ./autogen.sh    #this step consist of a step of curl getting gmock, might failed.. advice is to use thunder to download in advance.. for more info, see this file..
 5 ./configure --prefix=/usr
 6 make
 7 make install
 8 ldconfig
 9 export PKG_CONFIG_PATH=/lib/pkgconfig/
10 cd ../.. && vim Makefile
11 make --prefix=/usr
12 make install

compile the helloworld example.. is easy.. the most important is to write the server/client side .go files and one message/rpc .proto file.

posted on 2016-08-14 22:17  三叁  阅读(288)  评论(0编辑  收藏  举报

导航