1、安装ndn-cxx和NFD
注意,ndn-cxx+NFDfrom packages and from source code may conflict with each otherbecause they may have different versions. If you choose to installfrom source , make sure everything is installed from source , and thepackages are completedly deleted.
下载
#
Download ndn-cxx
git
clone https://github.com/named-data/ndn-cxx
#
Download NFD
git
clone --recursive https://github.com/named-data/NFD
安装 ndn-cxx的预先条件:
在bishe目录下,
sudo
apt-get install build-essential pkg-config libboost-all-dev
libsqlite3-dev libssl-dev libpcap-dev
sudo
apt-get install doxygen graphviz python-sphinx
再以此输入三条指令进行Build进行构建。
转到ndn-cxx目录下
./wafconfigure
./waf
sudo./waf install
这块如果出现问题,参照我的另一篇文章《解决安装NFD的ndn-cxx依赖时:输入./waf指令一直报错的问题》
接下来转到NFD目录下,
cdNFD
依次输入三条指令进行Build
./wafconfigure
./waf
sudo./waf install
构建完了之后,进入/usr/local/bin目录中,查找nfd,看有没有nfd这个选项。
然后在进入/usr/local/etc/ndn中,看有没有nfd.conf.sample这个文件。
如果没有,说明NFD没有装好,再回头检查一下是什么问题,如果有的话,输入下面的这条指令:
sudocp /usr/local/etc/ndn/nfd.conf.sample /usr/local/etc/ndn/nfd.conf
到此为止,ndn-cxx和NFD就装好了。