文章目录
- install cmake
- install grpc
- install protobuf
- 注
install cmake
sudo apt-get install -y g++ make libssl-devcd third_party/cmake-3.17.2./configuresudo make && make installcmake --version
install grpc
$ sudo apt-get install -y build-essential autoconf libtool pkg-configinstall cd third_party/grpc-1.41.0cd cmakemkdir buildcd buildcmake -DgRPC_INSTALL=ON \-DgRPC_BUILD_TESTS=OFF \-DCMAKE_INSTALL_PREFIX=$MY_INSTALL_DIR \../..make -j4sudo make install
install protobuf
$ sudo apt-get install -y autoconf automake libtool curl make g++ unzipinstallcd third_party/grpc-1.41.0/third_party/protobufsudo ./autogen.shsudo ./configure --prefix=/usr/localsudo make -j4sudo make checksudo make installsudo ldconfig # refresh shared library cache.
注