Linux下安装Source Navigator

本文详细记录了在CentOS6.5上安装Source Navigator 6.0过程中遇到的问题及解决方案。在make阶段解决tk3d.c错误,需要安装libX11、libXmu和libXmu-devel。运行snavigator时,出现找不到tk.tcl的错误,通过编辑listbox.tcl和text.tcl文件进行修复。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

相关版本信息:

     CentOS6.5

     Source Navigator 6.0

关于如何在Ubuntu中安装该软件,可参考链接二,本人没有尝试


在CentOS6.5中:

下载Source Navigator6.0 版本,解压之后三步走,configure、make、install。


出现的问题如下:


首先

在make阶段会出现与  tk3d.c  相关的一系列错误,通过安装一些库文件可以解决。


分别安装 libX11 、libXmu 、libXmu-devel

yum install libX11

yum install libXmu

yum install libXmu-devel


如果没有找到相关的库文件,可以添加其他软件源来获取这些库文件,本人使用了epel,具体添加方法参考链接一。


安装完上述库文件之后,make过程通过。


其次

当运行snavigator时,/usr/local/bin/snavigator

首先会出现如下错误

[root@localhost bin]# ./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 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.

通过参考链接二中的方法可以解决该问题

摘自链接二:

注意上面的第10行:file “/usr/local/share/tk8.3/listbox.tcl” line182

[root@localhost bin]# vim /usr/local/share/tk8.3/listbox.tcl

打开listbox.tcl文件,注释掉182~184三行。


接着再次运行又会出现如下错误

[root@localhost bin]# ./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 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.

也参考链接二中的方法可以解决。

摘自链接二:

[root@localhost bin]# vim /usr/local/share/tk8.3/text.tcl

打开text.tcl文件,注释掉457~459行。


链接一:http://www.linuxidc.com/Linux/2013-12/93433.htm

链接二:http://blog.sina.com.cn/s/blog_4ad7c2540101au63.html


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值