安裝 ns-3.12
1.下載
從這個頁面下載:http://www.nsnam.org/ns-3-12/
The source code can be downloaded from here while the extensive documentation is available in a variety of formats from here.
下載地址:
www.nsnam.org/release/ns-allinone-3.12.1.tar.bz2
下載後,保存。
2. 把 ns-allinone-3.12.1.tar.bz2 複製到你想安裝的位置,並解壓
$ tar -xvf ns-allinone-3.12.1.tar.bz2
進入解壓後的目錄: ns-allinone-3.12.1
$ cd ns-allinone-3.12.1
$ ./build.py
顯示:
...
[1367/1368] vnum: build/debug/libns3-point-to-point-layout.so -> build/debug/libns3-point-to-point-layout.so.3
[1368/1368] vnum: build/debug/libns3-test.so -> build/debug/libns3-test.so.3
Waf: Leaving directory `/home/gpf/ns-312/ns-allinone-3.12.1/ns-3.12.1/build'
'build' finished successfully (20m39.217s)
Modules built:
aodv applications bridge
config-store core csma
csma-layout dsdv emu
energy flow-monitor internet
lte mesh mobility
mpi netanim network
nix-vector-routing ns3tcp ns3wifi
olsr point-to-point point-to-point-layout
propagation spectrum stats
tap-bridge template test
tools topology-read uan
virtual-net-device visualizer wifi
wimax
Modules not built:
click openflow
3. 進入 ns-allinone-3.12.1/ns-3.12.1目錄:
$ cd ns-3.12.1
用waf配置並編譯
$ ./waf configure --enable-examples --enable-tests
$ ./waf
測試 :
$ ./waf --run hello-simulator
顯示:
Waf: Entering directory `/home/gpf/ns-312/ns-allinone-3.12.1/ns-3.12.1/build'
Waf: Leaving directory `/home/gpf/ns-312/ns-allinone-3.12.1/ns-3.12.1/build'
'build' finished successfully (7.327s)
Hello Simulator
安裝成功。
從這個頁面下載:http://www.nsnam.org/ns-3-12/
The source code can be downloaded from here while the extensive documentation is available in a variety of formats from here.
下載地址:
www.nsnam.org/release/ns-allinone-3.12.1.tar.bz2
下載後,保存。
2. 把 ns-allinone-3.12.1.tar.bz2 複製到你想安裝的位置,並解壓
$ tar -xvf ns-allinone-3.12.1.tar.bz2
進入解壓後的目錄: ns-allinone-3.12.1
$ cd ns-allinone-3.12.1
$ ./build.py
顯示:
...
[1367/1368] vnum: build/debug/libns3-point-to-point-layout.so -> build/debug/libns3-point-to-point-layout.so.3
[1368/1368] vnum: build/debug/libns3-test.so -> build/debug/libns3-test.so.3
Waf: Leaving directory `/home/gpf/ns-312/ns-allinone-3.12.1/ns-3.12.1/build'
'build' finished successfully (20m39.217s)
Modules built:
aodv applications bridge
config-store core csma
csma-layout dsdv emu
energy flow-monitor internet
lte mesh mobility
mpi netanim network
nix-vector-routing ns3tcp ns3wifi
olsr point-to-point point-to-point-layout
propagation spectrum stats
tap-bridge template test
tools topology-read uan
virtual-net-device visualizer wifi
wimax
Modules not built:
click openflow
3. 進入 ns-allinone-3.12.1/ns-3.12.1目錄:
$ cd ns-3.12.1
用waf配置並編譯
$ ./waf configure --enable-examples --enable-tests
$ ./waf
測試 :
$ ./waf --run hello-simulator
顯示:
Waf: Entering directory `/home/gpf/ns-312/ns-allinone-3.12.1/ns-3.12.1/build'
Waf: Leaving directory `/home/gpf/ns-312/ns-allinone-3.12.1/ns-3.12.1/build'
'build' finished successfully (7.327s)
Hello Simulator
安裝成功。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.