$sudo apt-get install build-essential autoconf libtool curl git pkg-config $git clone https://github.com/grpc/grpc.git $cd grpc $git submodule update --init
$cd third_party/protobuf/ $./autogen.sh $./configure --prefix=/data/bin/protobuf/protobuf-dev $make -j4 $sudo make install
$cd ../../ $export PKG_CONFIG_PATH=/data/bin/protobuf/protobuf-dev/lib/pkgconfig:/data/bin/grpc/grpc-dev/lib/pkgconfig $export PATH=/data/bin/protobuf/protobuf-dev/bin:/data/bin/grpc/grpc-dev/bin:$PATH $export LD_LIBRARY_PATH=/data/bin/protobuf/protobuf-dev/lib:/data/bin/grpc/grpc-dev/lib $EXTRA_LDFLAGS=-L/data/bin/protobuf/protobuf-dev/lib CONFIG=dbg make prefix=/data/bin/grpc/grpc-dev -j4 $sudo CONFIG=dbg make prefix=/data/bin/grpc/grpc-dev install
$EXTRA_LDFLAGS=-L/data/bin/protobuf/protobuf-dev/lib make -j4 $make prefix=/data/bin/grpc/grpc-dev install
$git ~/.bashc
export PATH=/data/bin/protobuf/protobuf-dev/bin:/data/bin/grpc/grpc-dev/bin:$PATH export PKG_CONFIG_PATH=/data/bin/protobuf/protobuf-dev/lib/pkgconfig:/data/bin/grpc/grpc-dev/lib/pkgconfig export LD_LIBRARY_PATH=/data/bin/protobuf/protobuf-dev/lib:/data/bin/grpc/grpc-dev/lib
$source ./~bashrc
$protoc -I . --grpc_out=. --plugin=protoc-gen-grpc=`which grpc_cpp_plugin` helloworld.proto $protoc -I . --cpp_out=. helloworld.proto