操作系統: Fedora 16
NS版本:ns-3.17
1. 前奏,參考這裏安裝
2. 去官網下載tarball安裝包和document來參考
cd
mkdir workspace
cd workspace
wget http://www.nsnam.org/releases/ns-allinone-3.17.tar.bz2
tar xjf ns-allinone-3.17.tar.bz2
3. 進目錄安裝
./build.py
在這個過程中,出現了
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 14: ordinal not in range(128)
一查原因是目錄路徑中有中文。。換個路徑就可以了
4. 結束
出現如下結果:
Waf: Leaving directory `/home/caihong/ns-allinone-3.17/ns-3.17/build'
'build' finished successfully (9m32.836s)
Modules built:
antenna aodv applications
bridge buildings config-store
core csma csma-layout
dsdv dsr emu
energy fd-net-device flow-monitor
internet lte mesh
mobility mpi netanim (no Python)
network nix-vector-routing olsr
point-to-point point-to-point-layout propagation
spectrum stats tap-bridge
test (no Python) tools topology-read
uan virtual-net-device visualizer
wifi wimax
Modules not built (see ns-3 tutorial for explanation):
brite click openflow
Leaving directory `./ns-3.17'
已成功安裝
5. 測試(需要build的時候加上--enable-test參數)
./test.py -c core
可以看到一行行PASS神馬的。。