-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_nfd.sh
executable file
·33 lines (27 loc) · 1.17 KB
/
install_nfd.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
# 通用的函数定义和变量定义
source ./common.sh
# install nfd prerequesites
sudo apt-get install build-essential pkg-config valgrind libsystemd-dev \
libsqlite3-dev libssl-dev libpcap-dev -y
sudo apt-get install doxygen graphviz python-sphinx -y
# install nfd
sudo apt-get install build-essential pkg-config valgrind libsystemd-dev \
libsqlite3-dev libssl-dev libpcap-dev -y
sudo apt-get install doxygen graphviz python-sphinx -y
cloneOrUpdate NFD https://github.com/named-data/NFD/archive/NFD-${NDN_NFD_VERSION}.tar.gz ${NDN_NFD_VERSION}
mkdir -p websocketpp
curl -L https://github.com/cawka/websocketpp/archive/${WEB_SOCKET_PP_VERSION}.tar.gz > websocket.tar.gz
# curl -L https://github.com/cawka/websocketpp/archive/0.8.1-hotfix.tar.gz > websocketpp.tar.gz
tar xf websocket.tar.gz -C websocketpp/ --strip 1
./waf configure
./waf
sudo ./waf install
afterInstall NFD https://github.com/named-data/NFD/archive/NFD-${NDN_NFD_VERSION}.tar.gz ${NDN_NFD_VERSION}
# 配置文件
# check nfd.conf exists?
if [[ ! -f /usr/local/etc/ndn/nfd.conf ]];then
cd /usr/local/etc/ndn
sudo cp nfd.conf.sample nfd.conf
fi
sudo ldconfig