在ubuntu中安装 Source-Navigator及使用手册(zz)
2009-09-25 23:19
from : http://hi.baidu.com/xiaohu_tiger/blog/item/66d207888431d6b40f2444ec.html
1 通过apt-get安装(版本较旧)
安装命令:sudo apt-get install sourcenav
启动命令:snavigator
2 手动安装最新版本
1)到官方网站获取软件包
http://sourceforge.net/project/showfiles.php?group_id=51180
2)解压缩
tar zxvf s ourcenav-6.0.tar.gz
./configure --prefix=/opt/sourcenav (install 文件推荐参数)
make
make install
ps:如果出现权限问题,前面加sudo
3)如果碰到下述错误
/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
4) 启动snavigator
在终端直接输入:snavigator
5) 使用手册(user manual)
http://sourcenav.sourceforge.net/online-docs/userguide/index_ug.html
还有一个 source insight 和source navigator的比较的帖子:
http://fky168.blog.163.com/blog/static/3786097200831033957620/
========================================================
运行source navigator的问题
方法一、(转载)
安装完成后运行 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.
不知其所以然,重新安装tk8.3无效,升级到tk8.5无效
后来在网上发现需要给下载的Source-Navigator 6.0打补丁
到http://bugs.gentoo.org/show_bug.cgi?id=225999 找到 tk-8.4-lastevent.patch 补丁
将补丁粘贴到source navigator 源码目录 sourcenav-6.0/tk目录下,再cd 到sourcenav-6.0/ tk 的源码目录
patch -p0 -i tk-8.4-lastevent.patch
删除安装,重新安装,可以运行了(我试了一下不行)。
方法二、(转载)
有找到解法:
(http://forums.fedoraforum.org/showthread.php?t=213441)
註掉 lines 182-184 in the file /opt/sourcenav/share/tk8.3/listbox.tcl
註掉 lines 457-459 in the file /opt/sourcenav/share/tk8.3/text.tcl
在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/
分享到:
相关推荐
你可以使用Source-Navigator: 分析某处源码的变化对其他模块的影响 查找某个函数被调用的地方 查找所有包含某个头文件的文件 利用grep工具在源码中进行搜索 Source-Navigato... 显示详细内容... 开发语言: C...
LK-Navigator中文手册,软件的中文使用说明。便于学习和使用软件。
Red Hat Source-Navigator TM is a powerful code analysis and comprehention tool that provides a graphic framework for understanding and reengineering large or complex software projects. Source-...
LJ-Navigator基恩士项目实例使用方案,2D扫描仪,读取值记录数据库
Source-Navigator is a source code analysis tool. With it, you can edit your source code, display relationships between classes and functions and members, and display call trees. You can also build ...
官网那个安装包看起来很大,接近1GB,但是这个很小,我安装好了之后, 软件是正常的,可以用。开发文档是英文的,但是我在其他地方找到了中文的文档。 安装软件自动生成的demo有问题,我打开的是C#例程,会报错,...
KEYENCE LK-Navigator2(基恩士激光控制器)KEYENCE LK-Navigator2(基恩士激光控制器)KEYENCE LK-Navigator2(基恩士激光控制器)KEYENCE LK-Navigator2(基恩士激光控制器)KEYENCE LK-Navigator2(基恩士激光...
基恩士线激光设置软件LJ-Navigator 2 安装包,百度网盘链接
LJ-Navigator基恩士激光传感器的调试软件,非常实用的,有波形可在线观看,LJ-Navigator基恩士激光传感器的调试软件,非常实用的,有波形可在线观看
LK-Navigator2 LK-SH1W_ver1_60
领航者Navigator2-1客户使用手册
激光位移传感器最新设置调试软件,ver1.60,是目前的最新版,希望对需要的朋友有所帮助!只需在解压后点击Setup.exe即可
高速、高精度CCD激光位移传感器LK-G3000 系列 LK-H1W 用于 LK-G 系列设置和 支持软件 LK-Navigator
sourcenavigator-NG4.5.tar.bz2 源代码
领航者Navigator2-1用户使用手册
基恩士LK navigator2的工具软件,官网上没有软件,只有更新包,前段时间实验室电脑没有安装包,上传也给我自己做个备份
著名开源软件Source Navigator的Windows版本,解压可用。最好的查看源代码工具。功能强,界面超爽,再也不用烦恼SI的bug了。
Keyence基恩士LK-G5001驱动+LK-Navigator 2
可以用来替代sourceinsight的一种代码阅读工具
工具-SourceNavigator-NG 这是Source-Navigator NG,它是C / C ++ / Fortran / Java / Tcl / PHP / Python的IDE,以及许多其他语言。 它包括强大的源代码理解功能,可帮助开发人员了解程序源代码元素之间的复杂关系...