2009-08-30

NS 2.33

clipped from www.wretch.cc
1.安裝cygwin時一定要親自選安裝包(package),千萬不可以偷懶選擇全部安裝,
不然不會出現
.bashrc .bash_profile 和 .inputrc 這三個檔案
要選擇的有以下:
diffstat 
diffutils  
gcc
gcc-g++  
gnuplot
make
patch
perl
tar
X-startup-scripts
xorg-x11-base
xorg-x11-bin
xorg-x11-devel
xorg-x11-bin-dlls
xorg-x11-bin-lndir  
xorg-x11-etc
xorg-x11-fenc
xorg-x11-fnts
xorg-x11-libs-data  
xorg-x11-xwin

安裝時如果沒出現xorg的package,將右下角的hide obsoulate 這個打勾弄掉
3.如果執行出現
ns: finish: couldn't execute "nam": no such file or directory
while executing ....(列出用到$nam的片段)
需手動make出nam.exe 需
執行cygwin的setup.exe安裝檔並安裝libXmu-devel封裝模組(屬於X11 category),完成後再去make出nam.exe,

將之複製到 home/XXXX/ns-allinone-2.33/bin,讓NS2執行tcl可以執行nam的命令
1. 下載patch,到http://bugs.gentoo.org/show_bug.cgi?id=225999 下載 tk-8.4.18-tkBind.patch(右鍵另存新檔)
2. 到ns-allinone-2.33目錄下,執行
patch -p0 < tk-8.4.18-tkBind.patch

3. 重新安裝ns-2.33,執行./install
 blog it

沒有留言: