GRPC: set up..

时间:2024-03-26 12:33:27

get the grpc source file..

 git clone https://github.com/grpc/grpc
git submodule update --init --recursive
cd third-party/protobuf
./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..
./configure --prefix=/usr
make
make install
ldconfig
export PKG_CONFIG_PATH=/lib/pkgconfig/
cd ../.. && vim Makefile
make --prefix=/usr
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.