Ubuntu15.04下ndn SIM2.0的安装

xiaoxiao2021-02-27  386

本文是基于Ubuntu15.04系统,安装的ndn SIM2.0。

安装过程参考了官网及一系列博客教程

中间走了一些弯路,所以记录一下安装步骤

第一步:解决库依赖问题

下载必要组件:

sudo apt-get install build-essential  sudo apt-get install libsqlite3-dev libcrypto++-dev  sudo apt-get install libboost-all-dev

下载可选组件:

sudo apt-get install python-dev python-pygraphviz python-kiwi  sudo apt-get install python-pygoocanvas python-gnome2  sudo apt-get install python-rsvg ipython  sudo apt-get install libbz2-dev  sudo apt-get install mpi-default-dev

第二步:下载必要源码

下载ndnSIM2.0源代码:

mkdir ndnSIM  cd ndnSIM  git clone https://github.com/named-data/ndn-cxx.git ndn-cxx  git clone https://github.com/cawka/ns-3-dev-ndnSIM.git ns-3  git clone https://github.com/cawka/pybindgen.git pybindgen  git clone https://github.com/named-data/ndnSIM.git ns-3/src/ndnSIM

第三步:安装

cd pybingen

./waf configure

此处报错,说是缺少gccxml,所以先安装了gccxml

sudo apt-get install gccxml

sudo ./waf

此时不报错了

cd ..

cd ns-3

发现缺少doxygen,查阅网上的资料,说是之前ns-3的文件源码安装有问题

重新安装了ns-3的文件源码

git clone --recursive https://github.com/named-data-ndnSIM/ndnSIM.git ns-3/src/ndnSIM sudo apt-get install libssl-dev

sudo ./waf configure --enable examples

sudo ./waf

第四步:仿真

在ns-3的路径下进行

./waf --run=ndn-simple

./waf --run=ndn-grid

./waf --vis

转载请注明原文地址: https://www.6miu.com/read-1319.html

最新回复(0)