最近要用ndnSIM仿真环境去测试CCN,顺便记下安装流程和测试
针对ubuntu 12.04
sudo apt-get install python-software-properties sudo add-apt-repository ppa:boost-latest/ppa sudo apt-get update sudo apt-get install libboost1.55-all-dev #add --boost-libs=/usr/lib/x86_64-linux-gnu to ./waf configure #./waf configure --boost-libs=/usr/lib/x86_64-linux-gnu
前提
核心依赖
- python >= 2.6
- libsqlite3
- libcrypto++
- pkg-config
- Boost libraries >= 1.49
sudo apt-get install build-essential libsqlite3-dev libcrypto++-dev
#For Ubuntu 12.04
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:boost-latest/ppa
sudo apt-get update
sudo apt-get install libboost1.55-all-dev
#For all other Ubuntu versions
sudo apt-get install libboost-all-dev
为ns3 python准备的依赖包
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
下载 ndnSIM 源码
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
编译并运行 ndnSIM
cd <ns-3-folder>
./waf configure --enable-examples
./waf