Ubuntu14.04下配置ndnSIM-nom-rapid-car2car

参考
[1]Grassi G, Pesavento D, Pau G, et al. VANET via named data networking[J]. Proceedings - IEEE INFOCOM, 2014:410-415.
[2]https://github.com/cawka/ndnSIM-nom-rapid-car2car
[3]https://www.cnblogs.com/wsine/p/4979272.html

一.依赖

sudo apt-get install build-essential libsqlite3-dev libcrypto++-dev
sudo apt-get install libboost-all-dev
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
sudo apt-get install git

二.下载ns-3 ndnSIM

mkdir ndnSIM
cd ndnSIM
git clone git://github.com/cawka/ns-3-dev-ndnSIM.git ns-3
cd ns-3
git checkout -b ndnSIM-0.4.3  ns-3.17-ndnSIM-0.4.3 //使用git会退到论文中相同的版本v0.4.3
cd ..
git clone git://github.com/cawka/pybindgen.git pybindgen
git clone git://github.com/NDN-Routing/ndnSIM.git ns-3/src/ndnSIM
cd ns-3/src/ndnSIM
git checkout -b v0.4.3 v0.4.3//使用git会退到论文中相同的版本v0.4.3

关键目录结构树如下:

  • ndnSIM
     * ns-3
      * src
       * ndnSIM
     * pybindgen

三.编译

CXXFLAGS="-Wall" ./waf configure --boost-libs=/usr/lib/x86_64-linux-gnu -d optimized
./waf -j4
sudo ./waf install

四.编译论文代码

cd ndnSIM
git clone https://github.com/cawka/ndnSIM-nom-rapid-car2car.git
cd ndnSIM-nom-rapid-car2car
./waf configure --boost-libs=/usr/lib/x86_64-linux-gnu
./waf

五.安装R
官网网址:https://www.r-project.org/
选择Download R
CRAN列表选择清华大学的镜像源https://mirrors.tuna.tsinghua.edu.cn/CRAN/
选择Download R for Linux
选择ubuntu
选择trusty
64位系统请选择 r-base-core_3.4.3-1trusty0_amd64.deb 下载
32位系统请选择 r-base-core_3.4.3-1trusty0_i386.deb 下载
双击安装

sudo R
install.packages ('proto')
install.packages ('ggplot2')
install.packages ('doBy')

如果遇到依赖问题见https://www.jianshu.com/p/5ab43800cfdb

六.运行与测试

cd ndnSIM/ndnSIM-nom-rapid-car2car
./run.py -s figure-3-data-propagation-vs-time
./run.py -s figure-4-data-propagation-vs-distance
./run.py -s figure-5-retx-count

可能会遇到问题,见https://www.jianshu.com/p/f499aeb90dc6

你可能感兴趣的:(Ubuntu14.04下配置ndnSIM-nom-rapid-car2car)