声明目的(写在前面)
我写这篇不是什么普及知识的目的,恰恰相反,我是为了记录自己的错误与走过打弯路,我打文笔也很差,做不到简练与精准,所以我只会流水帐式的记录下自己的操作,因为比起一篇技术博客,我更倾向于把它作为一份操作日志
ndnSIM介绍
https://ndnsim.net/2.4/getting-started.html
这方面还是不做任何的了解,不知道ndn的自然用不到ndnSIM,而看了那么多资源,觉得还是ndnSIM原有,所以贴到上面来网址的安装教程最方便,接下来我会把装配打过程记录下来。
第一步 Core dependencies装配
对ndnSIM装配需要这些
python >= 2.6
libsqlite3
libcrypto++
pkg-config
openssl
Boost libraries >= 1.54
不知道这些是什么,没关系,原网址贴心的把对于各个操作系统的对应命令放在下面,有MACOS、linux的Federa当然还有ubuntu的,我用的就是推荐的ubuntu16.5,照着一步一步操作就行了。
sudo apt-get install build-essential libsqlite3-dev libcrypto++-dev libboost-all-dev libssl-dev git python-setuptools
这时,出现错误
E: 无法获得锁 /var/lib/dpkg/lock-frontend - open (11: 资源暂时不可用)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
不知道是什么原因,没事儿,百度,找到了解决方案
$ sudo rm -r -f /var/lib/dpkg/lock-frontend
如果还不行,那么继续(在执行一下上面打操作)
$ sudo rm -r -f /var/lib/dpkg/lock
这样问题解决了,继续下一步
Dependencies for NS-3 Python bindings
同样的,命令被给出来
sudo apt-get install python-dev python-pygraphviz python-kiwi python-pygoocanvas python-gnome2 python-rsvg ipython
这一步很顺畅的完成了,准备工作完成,开始正餐。
Downloading ndnSIM sourc
mkdir ndnSIM
cd ndnSIM
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
可能是网络的问题,到现在还没下载完毕,看来今天构想能开始进行编译来,算了,这次先这样,下载完了再说别的吧。
2020.6.2
git出现了个问题,昨晚竟然没发现,果然做事情不能太随便
,出现了下面提示,导致一晚上卡在10%的进度,并且最后出现下面的信息
error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function. fatal: The remote end hung up unexpectedly fatal: 过早的文件结束符(EOF)
解决方案(原文链接,亲测有用)
https://blog.csdn.net/qq_21508727/article/details/89413590
- 文件加大传输上限
git config --global http.postBuffer 524288000
- ~/.bashrc(每次shell前执行)后加上这三条
export GIT_TRACE_PACKET=1
export GIT_TRACE=1
export GIT_CURL_VERBOSE=1
#2020.6.3