2009-05-20

安裝 NS-2.33 到 ubuntu 9.04

全部的方法都跟以往裝在8.10一樣...

所以...

這篇是廢文嗎!?

不...因為,照著舊方法裝,你一定會發現一個驚人的問題!

那就是nam無法啟動...

只要打下nam指令就會:

[code omitted because of length]
: no event type or button # or keysym
while executing
"bind Listbox {
%W yview scroll [expr {- (%D / 120) * 4}] units
}"
invoked from within
"if {[tk windowingsystem] eq "classic" [tk windowingsystem] eq "aqua"} {
bind Listbox {
%W yview scroll [expr {- (%D)}] units
}
bind Li..."


為了解決這問題,我當然就上網 google 啦~

問題出在 nam 所使用的 tk 模組與 xproto-7.0.13 不相容的關係。(因為 xproto-7.0.13 中新加入了 GenericEvent)

其解決方法如下:

1. 下載 patch
http://bugs.gentoo.org/show_bug.cgi?id=225999 下載 tk-8.4.18-tkBind.patch

2. 到 ns-allinone-2.33 目錄底下
執行 patch -p0 http://victorgau.blogspot.com/2008/12/ns2-233-nam.html

沒有留言 :

張貼留言