ubuntu下基于ns-3的ndnSIM的安裝

http://ndnsim.net/1.0/getting-started.html
sudo apt-get update
sudo apt-get uprade
參考YogyKali Linux下常用軟件安裝及配置
安裝

wudanye@wubuntu:~$ sudo apt-get install build-esscential
wudanye@wubuntu:~$ sudo apt-get install aptitude

依賴(wudanye@wubuntu:~$sudo apt-get install libpython2.7-stdlib)

  1. 安裝依賴庫
wudanye@wubuntu:~$ sudo aptitude install libboost-all-dev
sudo apt-get install python-dev python-pygraphviz python-kiwi python-pygoocanvas python-gnome2 python-rsvg ipython
  1. 下載ndnSIM源代碼
    安裝
wudanye@wubuntu:~$ sudo apt-get install git
wudanye@wubuntu:~$ sudo apt-get install vim
wudanye@wubuntu:~/Workspace$ mkdir ndnSIM

下載ns-3:

wudanye@wubuntu:~/Workspace/ndnSIM$ git clone -b ndnSIM-v1 git://github.com/cawka/ns-3-dev-ndnSIM ns-3

下載ndnSIM

wudanye@wubuntu:~/Workspace/ndnSIM$ git config --global url."https://".insteadOf git://
wudanye@wubuntu:~/Workspace/ndnSIM$ git clone -b master-v1 git://github.com/named-data/ndnSIM.git ns-3/src/ndnSIM

如果不下載ns-3,直接復(fù)制的情況下,需要在ns-3下:

wudanye@wubuntu:~/Workspace/ndnSIM/ns-3$ sudo chmod -R 777 *

配置pybindgen:

wudanye@wubuntu:~/Workspace/ndnSIM$ git clone git://github.com/cawka/pybindgen.git pybindgen
??(wudanye@wubuntu:~/Workspace/ndnSIM$ git clone -b master-v1 git://github.com:named-data/ndnSIM.git ns-3/src/ndnSIM)
  1. 編譯運(yùn)行
wudanye@wubuntu:~/Workspace/ndnSIM/ns-3$./waf configure --enable-tests --enable-examples
wudanye@wubuntu:~/Workspace/ndnSIM/ns-3$./waf --run=ndn-simple --vis
wudanye@wubuntu:~/Workspace/ndnSIM/ns-3$./waf --run=ndn-tree-cs-tracers

Eclipse

1.安裝

wudanye@wubuntu:~$ sudo apt-get install eclipse eclipse-cdt eclipse-cdt-pkg-config

2.配置
新建ns-3項(xiàng)目

New -- C++ Project
Project name: ndnSIM
Location: /home/wudanye/Workspace/ndnSIM/ns-3

配置waf編譯器

Project->properties->C/C++build
Builder Settings:
Build command: ${workspace_loc:/ndnSIM}/waf
Build directory: ${workspace_loc:/ndnSIM}/build
Behaviour:
Build(Incremental Build): all --> build

備選
Project->properties->C/C++build->Environment->Add
Name: LANG
Value: zh_CN.UTF-8:en_US
Name:LC_ALL
Value: en_US

Very Important:
配置調(diào)試器

Run->Debug Configurations->C/C++application->ndnSIM Debug
C/C++ Application:
/home/wudanye/workspace/ndnSIM/ns-3/src/ndnSIM/examples/ndn-tree-cs-tracers.cc
Project:
ndnSIM
Environment->New:
Variable: LD_LIBRARY_PATH
Value: ${workspace_loc:/ndnSIM}/build

寫在最后。

sudo passwd root
su root
su
logout (?)

IPV4

10.21.5.60
255.255.0.0
10.21.0.254

DNS

159.226.39.1
159.226.8.6

登錄 159.226.39.22
ubuntu系統(tǒng)安裝 邏輯分區(qū)
ext4 /
交換分區(qū) 小5G
ext4 /home

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容