Linux下安装Source Navigator

来源:互联网 发布:从手机淘宝哪交电费 编辑:程序博客网 时间:2024/05/16 07:22

相关版本信息:

     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


0 0
原创粉丝点击