系统环境为:
-
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”和“ndn_cxx”

本文记录了在Ubuntu 20.04系统中安装ndnSIM的过程,包括安装依赖、从GitHub克隆源码,特别是遇到的HTTPS连接问题导致的clone失败,以及如何手动clone 'NFD'和'ndn_cxx'子模块。此外,还提到了安装后启动编译程序的步骤。
最低0.47元/天 解锁文章

被折叠的 条评论
为什么被折叠?



