安装SourceNavigator 6.0

来源:互联网 发布:边际报酬递减规律算法 编辑:程序博客网 时间:2024/05/19 22:49

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
又囧了,出现以下提示
1234567891011121314151617181920212223242526
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 keysymno 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
又囧了,提示如下:

123456789101112131415161718192021222324252627
 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 keysymno 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
正常了。



原创粉丝点击