2007年11月16日 星期五

[Linux文件] ns2 安裝

1. http://www.isi.edu/nsnam/ns/
到官方網站下載allinone這個檔案。

2.到root資料夾,解壓縮tar檔
tar -zxvf ns...

3. cd ns...
./install
等它跑完

4.將bash檔覆蓋到家目錄
export
PATH=/root/ns-allinone-2.31/bin:/root/ns-allinone-2.31/tcl8.4.14/unix:/root/ns-a
llinone-2.31/tk8.4.14/unix:$PATH
export
LD_LIBRARY_PATH=/root/ns-allinone-2.31/otcl-1.13:/root/ns-allinone-2.31/lib
export
TCL_LIBRARY=/root/ns-allinone-2.31/tcl8.4.14/library:/usr/local/gcc-3.4.0/lib

5.登出再登入,讓它載入新的設定檔

6.到 /root/ns.../ns.../tcl/ex
這是範例資料夾,執行下面指令測試是否可以run起來
ns nam-example.tcl

7.可以run,大功告成。

沒有留言: