# rust-grpc-tonic **Repository Path**: sice5921/rust-grpc-tonic ## Basic Information - **Project Name**: rust-grpc-tonic - **Description**: rust tonic hello world - **Primary Language**: Rust - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-16 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### 安装proto ##下载 ``` curl -OL https://github.com/google/protobuf/releases/最新版本的all ``` ##解压缩 ``` tar zxvf protobufXXXXX ``` ##安装依赖 ``` sudo apt-get install autoconf automake libtool curl make g++ unzip ``` ##生成需要的配置脚本 ``` cd protobuf //进入源码库中 ./autogen.sh //运行脚本生成需要的配置脚本 ``` ##编译安装 ``` ./configure make make check sudo make install sudo ldconfig //用于刷新共享库的缓存 ``` ##配置环境变量 /etc/profile和~/.profile的最后添加 ```   export PATH=$PATH:/usr/local/protobuf/bin/   export PKG_CONFIG_PATH=/usr/local/protobuf/lib/pkgconfig/ ``` ``` source /etc/profile #刷新 ``` ###配置动态链接库 (这个我没搞也能用,留作记录吧) ```   vim /etc/ld.so.conf,在文件中添加/usr/local/protobuf/lib(注意: 在新行处添加),然后执行命令: ldconfig ```