linux下相关软件安装

1、kscope的安装

原文地址:http://blog.csdn.net/e3399/article/details/7462702

我下载的是kscope-1.6.2.tar.gz
Fedora 14安装kscope的步骤
我下载的是kscope-1.6.2.tar.gz
http://download.chinaunix.net/download/0006000/5469.shtml
[root@localhost kscope-1.6.2]# tar zxvf kscope-1.6.2.tar.gz
[root@localhost kscope-1.6.2]# cd kscope-1.6.2
[root@localhost kscope-1.6.2]# ./configure
configure: error: The important program kde-config was not found!

[root@localhost kscope-1.6.2]# yum install kdelibs3 kdelibs3-devel

[root@localhost kscope-1.6.2]# ./configure
checking for Qt... configure: error: Qt (>= Qt 3.3 and < 4.0) (headers and libraries) not found. Please check your installation!
For more details about this problem, look at the end of config.log.

[root@localhost kscope-1.6.2]# yum install qt3 qt3-devel
[root@localhost kscope-1.6.2]# source /etc/profile
[root@localhost kscope-1.6.2]# ./configure
configure: error: Lex/Flex is required in order to build KScope

[root@localhost kscope-1.6.2]# yum install -y flex
[root@localhost kscope-1.6.2]# ./configure
configure: error: Yacc/Bison is required in order to build KScope

[root@localhost kscope-1.6.2]# yum install -y bison
[root@localhost kscope-1.6.2]# ./configure    
Good - your configure finished. Start make now

[root@localhost kscope-1.6.2]# make
/usr/bin/ld: cannot find -lkateinterfaces
 make时提示找不到 -lkateinterfaces,该参数是要找动态链接库,其实没有动态链接库,只有静态链接库,该库位于/usr/lib/libkatepartinterfaces.la
[root@localhost kscope-1.6.2]# vi src/Makefile
修改src/Makefile 大约在482行
          kscope_LDADD = -lkateinterfaces -lktexteditor $(LIB_KDEUI)
          -lkateinterfaces 替换为/usr/lib/libkatepartinterfaces.la

[root@localhost kscope-1.6.2]# make
[root@localhost kscope-1.6.2]# make install
[root@localhost kscope-1.6.2]# make clean
[root@localhost sourcenav-6.0]# yum install -y cscope ctags  graphviz

[root@localhost sourcenav-6.0]# kscope
第一次启动时,需要对Kscope做一些简单的配置,在配置时可能要指定Kscope所需的cscope,ctags和dot,直接点击下面的按钮Guess,让它自己检测就可以了,或者按下面这样子设置。
Cscope path:/usr/bin/cscope
Ctags path:/usr/bin/ctags
Dot path:/usr/bin/dot

kscope的使用:

1、光标移到某个函数上,必须ctrl+1才能跳到函数定义处,而不会自动跳转。

2、将光标停在某个函数名上,按Ctrl + \。根据提示,点两下鼠标,就可以轻松得到函数调用的关系图


你可能感兴趣的:(linux下相关软件安装)