在ubuntu 10.04下的Source-Navigator 安装与问题解决 1.下载:wget 2.解压缩:tar zxvf sourcenav-6.0.tar.gz 3.配置编译: ./configure make sudo make install (1)如果碰到下述错误 /root/tk8.4.16/unix/../generic/tk3d.c:1279: error: ‘TkBorder’ has no member named ‘resourceRefCount’ /root/tk8.4.16/unix/../generic/tk3d.c:1280: error: ‘Tk_FakeWin’ has no member named ‘display’ /root/tk8.4.16/unix/../generic/tk3d.c:1280: error: ‘Tk_FakeWin’ has no member named ‘screenNum’ /root/tk8.4.16/unix/../generic/tk3d.c:1280: error: ‘TkBorder’ has no member named ‘screen’ /root/tk8.4.16/unix/../generic/tk3d.c:1281: error: ‘Tk_FakeWin’ has no member named ‘atts’ /root/tk8.4.16/unix/../generic/tk3d.c:1281: error: ‘TkBorder’ has no member named ‘colormap’ /root/tk8.4.16/unix/../generic/tk3d.c:1301: error: ‘TkDisplay’ has no member named ‘borderTable’ /root/tk8.4.16/unix/../generic/tk3d.c:1301: error: ‘TkDisplay’ has no member named ‘borderTable’ /root/tk8.4.16/unix/../generic/tk3d.c:1306: error: ‘TkBorder’ has no member named ‘nextPtr’ 。。。。。。 则在终端是输入:sudo apt-get install libx11-dev
(2)安装完成后运行snavigator,如果提示 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 { %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 30 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.