Install gRPC from source in Ubuntu
Install dependence
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
Pull the source codes And install protobuf
git clone https://github.com/grpc/grpc.git
cd grpc
git submodule update --init
cd third_party/protobuf/
git submodule update --init --recursive
./autogen.sh
./configure
make
sudo make install
sudo ldconfig
which protoc
protoc --version
Install gPRC
cd ../..
sudo apt-get install cmake
mkdir -p cmake/build
cd cmake/build
cmake ../.. -DBUILD_SHARED_LIBS=ON
make
sudo make install
Test the gPRC
cd examples/cpp/helloworld/
make
sudo ./greeter_server
sudo ./greeter_client