Skip to content

Instantly share code, notes, and snippets.

@weidonglian
Created June 15, 2020 20:11
Show Gist options
  • Save weidonglian/052a0d22eae470907bd06b00bc1998ca to your computer and use it in GitHub Desktop.
Save weidonglian/052a0d22eae470907bd06b00bc1998ca to your computer and use it in GitHub Desktop.
grpc
#sudo apt-get update
#sudo apt-get install -y build-essential autoconf libtool git pkg-config curl automake libtool curl make g++ unzip
#sudo apt-get clean
GRPC_RELEASE_TAG=v1.11.x
GRPC_DIR=$(pwd)
cd ${GRPC_DIR}
#git clone -b ${GRPC_RELEASE_TAG} https://github.com/grpc/grpc ${GRPC_DIR} && \
cd ${GRPC_DIR} && \
# git submodule update --init && \
echo "--- installing protobuf ---" && \
cd third_party/protobuf && \
./autogen.sh && ./configure --enable-shared && \
make -j$(nproc) && make -j$(nproc) check && sudo make install && sudo ldconfig && \
echo "--- installing grpc ---" && \
cd ${GRPC_DIR} && \
make -j$(nproc) && sudo make install && sudo ldconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment