http://wildpointer.net/2010/03/15/install-source-navigator/
下載下傳了sourcenav-6.0.tar.gz (http://sourceforge.net/projects/sourcenav/),
然後一步步地,
$tar vxzf 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
正常了。