Ubuntu16.04 安装ndnSIM2.6
ndnSIM安装步骤:
- 首先使用root权限:sudo –i 然后输入你的密码。
- 安装核心依赖库
sudo apt-get install build-essential libsqlite3-dev libcrypto++-dev libboost-all-dev libssl-dev git python-setuptools
- 安装ns-3绑定的python相关库
sudo apt-get install python-dev python-pygraphviz python-kiwi python-pygoocanvas python-gnome2 python-rsvg ipython
- 下载相关数据源
mkdir ndnSIM
cd ndnSIM
git clone –b ndnSIM-v2.6 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 –b ndnSIM-2.6 https://github.com/named-data-ndnSIM/ndnSIM.git ns-3/src/ndnSIM
遇到问题:
解决方法:
git init
git checkout -b ndnSIM-2.6
分别进入ndnSIM/ns-3/src/ndnSIM/ndn-cxx和ndnSIM/ns-3/src/ndnSIM/NFD目录下,执行:
git submodule update --init
- 编译
首先进入ns-3目录
cd ns-3
./waf configure --enable-examples
./waf
遇到问题:在执行./waf configure --enable-examples时遇到如下问题
解决办法:
通过https://pypi.org/simple/setuptools-scm/手动下载补丁
setuptools_scm-3.0.6-py2.py3-none-any.whl
下载后在对应目录执行
pip install setuptools_scm-3.0.6-py2.py3-none-any.whl
即可解决。
6. 完成
补充:
遇到问题:
解决办法:究其原因是因为curl的postBuffer的默认值太小,我们需要调整它的大小,在终端重新配置大小。
在这里,笔者把postBuffer的值配置成500M,对笔者来说已经够了。可以根据你需要下载的文件大小,将postBuffer值配置成合适的大小。
git config --global http.postBuffer 524288000
git config --global http.postBuffer 1048576000
**tips:**相关数据员最好在早上6 7点钟下载,速度飞快~希望对朋友们有所帮助!