“VRPD”的版本间的差异

来自qingwei personal wiki
跳转至: 导航搜索
其他错误
其他错误
 
(未显示同一用户的1个中间版本)
第57行: 第57行:
 
# No more mirrors to try - giving up.
 
# 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
 
# 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 目录下
+
# 手动下载 linux-3.18.23.tar.xz, 保存到 /home/qingwyan/openwrt15.05-stable/dl 目录下 !!!!!!!!! 还是不行不行!!!
下载地址: https://github.com/saviourxx/openwrt_dl/blob/master/linux-3.18.23.tar.xz
+
 
 +
编译脚本会先去/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