`
wyk525
  • 浏览: 48828 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论

Install Source-Navigator on ubuntu

阅读更多
在http://sourcenav.sourceforge.net/download.html下载最新版本6.0,安装
sudo ./configure
sudo make install
安装完成后运行 snavigator 提示
[root@MagicLinux sourcenav-6.0]# 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 <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 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.

-------

I get the same error in F10 x86_64. Weird, because it works fine on my F7 system. I don't know if it has anything to do with the installed versions of Tcl/Tk (F10 comes with 8.5.3 while F7 has 8.4.13), since Source Navigator seems to use its own internal version (8.3.2).



Anyway, I got it working on my F10 system by doing the following:

    * comment out lines 182-184 in the file /opt/sourcenav/share/tk8.3/listbox.tcl
    * comment out lines 457-459 in the file /opt/sourcenav/share/tk8.3/text.tcl

The mousewheel binding syntax there seems to be the problem. The mousewheel will still work in Source Navigator (I just tested it to make sure).



--------



在panel中添加Launcher,在Command中添加/opt/sourcenav/bin/snavigator



====== 安裝完後在桌面增加捷徑的方法 ======
我要做捷徑的目標是/opt/sourcenav/bin/snavigator (這是個sh script)
裡面要改一行
#snbindir=`dirname $0`
snbindir=/opt/sourcenav/bin
這樣再建一個捷徑到桌面即可:
ln -s /opt/sourcenav/bin/snavigator ~/Desktop/
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics