“VRPD”的版本间的差异
来自qingwei personal wiki
(创建页面,内容为“== build vRPD 环境 == === protoc安装 === <source lang="shell" line start="1"> https://github.com/protobuf-c/protobuf-c/releases/download/v1.2.1/protobuf-c-1.2.1.…”) |
(→protoc安装) |
||
第2行: | 第2行: | ||
=== protoc安装 === | === protoc安装 === | ||
<source lang="shell" line start="1"> | <source lang="shell" line start="1"> | ||
+ | # 下载安装包 | ||
https://github.com/protobuf-c/protobuf-c/releases/download/v1.2.1/protobuf-c-1.2.1.tar.gz | https://github.com/protobuf-c/protobuf-c/releases/download/v1.2.1/protobuf-c-1.2.1.tar.gz | ||
https://github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.gz | https://github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.gz | ||
tar -xzf protobuf-c-1.2.1.tar.gz | tar -xzf protobuf-c-1.2.1.tar.gz | ||
tar -xzf protobuf-2.6.1.tar.gz | tar -xzf protobuf-2.6.1.tar.gz | ||
+ | |||
+ | # 安装相关的库 | ||
sudo apt-get install g++ | sudo apt-get install g++ | ||
sudo apt-get install autoconf automake libtool curl python-dev | sudo apt-get install autoconf automake libtool curl python-dev | ||
sudo apt-get install gawk zlib1g libncurses5 g++ flex | sudo apt-get install gawk zlib1g libncurses5 g++ flex | ||
+ | |||
cd protobuf-2.6.1/ | cd protobuf-2.6.1/ | ||
sudo ./configure | sudo ./configure | ||
第17行: | 第21行: | ||
python setup.py build | python setup.py build | ||
sudo python setup.py install --cpp_implementation | sudo python setup.py install --cpp_implementation | ||
+ | |||
cd ../.. | cd ../.. | ||
cd protobuf-c-1.2.1/ | cd protobuf-c-1.2.1/ | ||
第24行: | 第29行: | ||
sudo ldconfig | sudo ldconfig | ||
cd .. | cd .. | ||
+ | # 检查版本 | ||
protoc --version | protoc --version | ||
protoc-c --version | protoc-c --version | ||
</source> | </source> |
2017年12月29日 (五) 03:27的版本
build vRPD 环境
protoc安装
1 # 下载安装包
2 https://github.com/protobuf-c/protobuf-c/releases/download/v1.2.1/protobuf-c-1.2.1.tar.gz
3 https://github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.gz
4 tar -xzf protobuf-c-1.2.1.tar.gz
5 tar -xzf protobuf-2.6.1.tar.gz
6
7 # 安装相关的库
8 sudo apt-get install g++
9 sudo apt-get install autoconf automake libtool curl python-dev
10 sudo apt-get install gawk zlib1g libncurses5 g++ flex
11
12 cd protobuf-2.6.1/
13 sudo ./configure
14 sudo make
15 sudo make install
16 sudo ldconfig
17 cd python
18 python setup.py build
19 sudo python setup.py install --cpp_implementation
20
21 cd ../..
22 cd protobuf-c-1.2.1/
23 sudo ./configure
24 sudo make
25 sudo make install
26 sudo ldconfig
27 cd ..
28 # 检查版本
29 protoc --version
30 protoc-c --version