系统环境为:
-
Ubuntu Linux 20.04
需要先安装依赖
sudo apt install build-essential libsqlite3-dev libboost-all-dev libssl-dev git python3-setuptools castxml
sudo apt install gir1.2-goocanvas-2.0 gir1.2-gtk-3.0 libgirepository1.0-dev python3-dev python3-gi python3-gi-cairo python3-pip python3-pygraphviz python3-pygccxml
sudo pip3 install kiwi
接着创建ndnSIM文件夹并进入,从github上clonendnSIM源码
git clone https://github.com/named-data-ndnSIM/ns-3-dev.git ns-3
git clone https://github.com/named-data-ndnSIM/pybindgen.git pybindgen
git clone --recursive https://github.com/named-data-ndnSIM/ndnSIM.git ns-3/src/ndnSIM
或者换成
git clone git://github.com/named-data-ndnSIM/ns-3-dev.git ns-3
git clone git://github.com/named-data-ndnSIM/pybindgen.git pybindgen
git clone --recursive git://github.com/named-data-ndnSIM/ndnSIM.git ns-3/src/ndnSIM
但是在下载最后一个源码的时候容易出现的问题是下载子源码“NFD”和“nd