Install Source-Navigator on ubuntu

在http://sourcenav.sourceforge.net/download.html下载最新版本6.0,安装
sudo ./configure
sudo make install
安装完成后运行 snavigator 提示
# 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/
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值