今天在ubuntu9.10上装sourcenavigator, 打了一行命令 sudo apt-get insatll sourcenav 之后,囧了,居然说找不到它。没有办法,下载了sourcenav-6.0.tar.gz,然后一步步地,
$tar xf sourcenav-6.0.tar.gz
$cd sourcenav-6.0
$./configure
$make
$sudo make install
然后启动source navigator,
$snavigator
又囧了,出现以下提示
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | Can't find a usable tk.tcl in the following directories:
/usr/local/share/tk8.3
/usr/local/share/tk8.3/tk.tcl: no event type or button # or keysym
no event type or button # or keysym
while executing
"bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D / 120) * 4}] units
}"
(file "/usr/local/share/tk8.3/listbox.tcl" line 182)
invoked from within
"source [file join $tk_library listbox.tcl]"
invoked from within
"if {[string compare $tcl_platform(platform) "macintosh"] && \
[string compare {} $tk_library]} {
source [file join $tk_library button.tcl]
so..."
(file "/usr/local/share/tk8.3/tk.tcl" line 308)
invoked from within
"source /usr/local/share/tk8.3/tk.tcl"
("uplevel" body line 1)
invoked from within
"uplevel \#0 [list source $file]"
This probably means that tk wasn't installed properly. |
然后google,看了看,知道解决方法了。
注意上面的第10行:file “/usr/local/share/tk8.3/listbox.tcl” line 182
于是:
$sudo gedit /usr/local/share/tk8.3/listbox.tcl
注释掉182~184三行。
然后:
$snavigator
又囧了,提示如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
Can't find a usable tk.tcl in the following directories:
/usr/local/share/tk8.3
/usr/local/share/tk8.3/tk.tcl: no event type or button # or keysym
no event type or button # or keysym
while executing
"bind Text <MouseWheel> {
%W yview scroll [expr {- (%D / 120) * 4}] units
}"
(file "/usr/local/share/tk8.3/text.tcl" line 457)
invoked from within
"source [file join $tk_library text.tcl]"
invoked from within
"if {[string compare $tcl_platform(platform) "macintosh"] && \
[string compare {} $tk_library]} {
source [file join $tk_library button.tcl]
so..."
(file "/usr/local/share/tk8.3/tk.tcl" line 308)
invoked from within
"source /usr/local/share/tk8.3/tk.tcl"
("uplevel" body line 1)
invoked from within
"uplevel \#0 [list source $file]"
This probably means that tk wasn't installed properly. |
照着葫芦画瓢,注意第11行:file “/usr/local/share/tk8.3/text.tcl” line 457
好吧:
$sudo gedit /usr/local/share/tk8.3/text.tcl
注释掉457~459行。
然后再:
$snavigator
正常了。