“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.…”) |
(→其他错误) |
||
(未显示同一用户的8个中间版本) | |||
第1行: | 第1行: | ||
== build vRPD 环境 == | == build vRPD 环境 == | ||
=== protoc安装 === | === protoc安装 === | ||
− | <source lang="shell | + | <source lang="shell"> |
+ | # 下载安装包 | ||
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 | ||
sudo make | sudo make | ||
sudo make install | sudo make install | ||
− | sudo ldconfig | + | sudo ldconfig |
− | cd python | + | |
− | python setup.py build | + | # cd python |
− | sudo python setup.py install --cpp_implementation | + | # python setup.py build |
+ | # sudo python setup.py install --cpp_implementation | ||
+ | |||
cd ../.. | cd ../.. | ||
cd protobuf-c-1.2.1/ | cd protobuf-c-1.2.1/ | ||
第24行: | 第30行: | ||
sudo ldconfig | sudo ldconfig | ||
cd .. | cd .. | ||
+ | # 检查版本 | ||
protoc --version | protoc --version | ||
protoc-c --version | protoc-c --version | ||
+ | </source> | ||
+ | |||
+ | === 其他依赖库 === | ||
+ | <source lang="shell"> | ||
+ | # Build dependency: Please install ncurses. (Missing libncurses.so or ncurses.h) | ||
+ | sudo apt-get install libncurses5-dev | ||
+ | |||
+ | # Build dependency: Please install zlib. (Missing libz.so or zlib.h) | ||
+ | sudo apt-get install zlib1g-dev | ||
+ | |||
+ | # Build dependency: Please install the openssl library (with development headers) | ||
+ | sudo apt-get install libssl-dev | ||
+ | |||
+ | # Build dependency: Please install the Subversion client | ||
+ | sudo apt-get install subversion | ||
+ | |||
+ | # popt: popt requires the GNU gettext development package installed on the local system to build. | ||
+ | sudo apt-get install gettext | ||
+ | </source> | ||
+ | === 其他错误 === | ||
+ | <source lang="shell"> | ||
+ | # Download failed. | ||
+ | # No more mirrors to try - giving up. | ||
+ | # Makefile:100: recipe for target '/home/qingwyan/openwrt15.05-stable/dl/linux-3.18.23.tar.xz' failed | ||
+ | # 手动下载 linux-3.18.23.tar.xz, 保存到 /home/qingwyan/openwrt15.05-stable/dl 目录下 !!!!!!!!! 还是不行不行!!! | ||
+ | |||
+ | # 编译脚本会先去/mnt/work 目录下找依赖的包。 所以直接找一个好的环境,copy他的/mnt/work就好 | ||
+ | scp -r jianyzha@10.79.41.135:/mnt/work . (lab123) | ||
+ | |||
+ | # 安装pip | ||
+ | sudo apt-get install python-pip python-dev build-essential | ||
+ | sudo pip install --upgrade pip | ||
</source> | </source> |
2017年12月29日 (五) 07:56的最新版本
build vRPD 环境
protoc安装
# 下载安装包
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
tar -xzf protobuf-c-1.2.1.tar.gz
tar -xzf protobuf-2.6.1.tar.gz
# 安装相关的库
sudo apt-get install g++
sudo apt-get install autoconf automake libtool curl python-dev
sudo apt-get install gawk zlib1g libncurses5 g++ flex
cd protobuf-2.6.1/
sudo ./configure
sudo make
sudo make install
sudo ldconfig
# cd python
# python setup.py build
# sudo python setup.py install --cpp_implementation
cd ../..
cd protobuf-c-1.2.1/
sudo ./configure
sudo make
sudo make install
sudo ldconfig
cd ..
# 检查版本
protoc --version
protoc-c --version
其他依赖库
# Build dependency: Please install ncurses. (Missing libncurses.so or ncurses.h)
sudo apt-get install libncurses5-dev
# Build dependency: Please install zlib. (Missing libz.so or zlib.h)
sudo apt-get install zlib1g-dev
# Build dependency: Please install the openssl library (with development headers)
sudo apt-get install libssl-dev
# Build dependency: Please install the Subversion client
sudo apt-get install subversion
# popt: popt requires the GNU gettext development package installed on the local system to build.
sudo apt-get install gettext
其他错误
# Download failed.
# No more mirrors to try - giving up.
# Makefile:100: recipe for target '/home/qingwyan/openwrt15.05-stable/dl/linux-3.18.23.tar.xz' failed
# 手动下载 linux-3.18.23.tar.xz, 保存到 /home/qingwyan/openwrt15.05-stable/dl 目录下 !!!!!!!!! 还是不行不行!!!
# 编译脚本会先去/mnt/work 目录下找依赖的包。 所以直接找一个好的环境,copy他的/mnt/work就好
scp -r jianyzha@10.79.41.135:/mnt/work . (lab123)
# 安装pip
sudo apt-get install python-pip python-dev build-essential
sudo pip install --upgrade pip