2009-11-02

ns2.33 找不到 nam

clipped from www.cs.nctu.edu.tw

找不到 nam

如果出現找不到 nam 的錯誤,到 nam-1.13 底下若沒有看到 nam.exe,則表示 nam 沒編譯完成。

此時需要重新編譯 nam。

  % cd ns2-allinone-2.33/nam-1.13
% ./configure

如果說找不到 X's lib,安裝libxt-devel
libXmu-devel

  % ./configure && make && make install

nam 編譯、安裝成功。

nam 出現錯誤

錯誤訊息

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

這個錯誤需要裝 patch 解決,到 http://bugs.gentoo.org/show_bug.cgi?id=225999 下載 tk-8.4.18-tkBind.patch

  % cd ~/ns2-allinone-2.33
% patch -p0 < tk-8.4.18-tkBind.patch
 blog it

沒有留言: