“VRPD”的版本间的差异

来自qingwei personal wiki
跳转至: 导航搜索
build vRPD 环境
其他错误
第53行: 第53行:
 
</source>
 
</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 目录下
 +
# 下载地址: https://github.com/saviourxx/openwrt_dl/blob/master/linux-3.18.23.tar.xz
 +
</source>

2017年12月29日 (五) 06:00的版本

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 目录下
# 下载地址: https://github.com/saviourxx/openwrt_dl/blob/master/linux-3.18.23.tar.xz