Centos 6.4系统下kscope1.6.2安装

1. 下载kscope-1.6.2

下载后,解压缩,并进入到kscope-1.6.2的源码根目录中。

2.在redhat下安装kscope,直接执行./configure时会出现以下错误:

configure: error: in the prefix, you've chosen, are no KDE headers installed.

kscope的使用需要添加安装kde环境支持:

2.1 在ubuntn9.10下,不能直接安装kscope1.6.2,先要安装kde环境支持,如下步骤:

apt-get install kdelibs (解决kde-config not found)
apt-get install xorg-dev (解决error:can't find X includes?)
apt-get install kdelibs4-dev kdelibs4c2a (解决no KDE headers installed)
本人在安装这些库的时候,也遇到了一些问题,安装的时候出现了:0% [Waiting for headers],然后就不动了。google了下,说是在apt-get install的过程中被中断过(确实是这样过),按照网上说的,把目录下的/var/cache/apt/archives的一些文件删除掉了,特别是/var/cache/apt/archives/partial目录下的文件。
2.2 在redhat及fedora下(解决no KDE headers installed)需要安装kdelibs3 与kdelibs3-devel 。因为软件的依赖性繁琐,可以用yum命令更新软件:
yum install kdelibs3 kdelibs3-devel
以及安装kde相关的库(解决kde-config was not found!):
yum install kdebase-devel

3. 配置.configure
用命令./configure --without-arts进行config
这个时候,会提示找不到这个,找不到那个,按照提示,将所需要的软件包都安装上。列出几个如下:
错误1: configure: error: C++ preprocessor "/lib/cpp" fails sanity check
解决方法:sudo apt-get install build-essential,然后再./configure --without-arts
错误2: configure: error: Lex/Flex is required in order to build KScope
解决方法:sudo apt-get install flex,然后再./configure --without-arts
错误3: configure: error: Yacc/Bison is required in order to build KScope
解决方法:sudo apt-get install bison,然后再./configure --without-arts
安装过程中,只记录了这些错误,如果还出现其它错误,google下,一般都能找到。

4. #make
make时会出现的问题:
错误1: /usr/bin/ld: cannot find -lkateinterfaces
make时提示找不到 -lkateinterfaces,不用担心,该参数是要找动态链接库,其实没有动态链接库,只有静态链接库,该库位于/usr/lib/libkatepartinterfaces.la,这个时候,切换到src目录下:
[ /opt/kscope-1.6.2]$cd src
[ /opt/kscope-1.6.2/src]$grep -n -lkateinterfaces Makefile
将Makefile文件中使用-lkateinterfaces 的地方,替换为/usr/lib/libkatepartinterfaces.la。
接着,退回到上层目录cd .. ,进行make,就会大功告成。

5. #make install
这个过程中没现过错误。

6. 安装cscope,ctags,graphviz
sudo apt-get install cscope ctags graphviz
redhat下:yum install cscope ctags graphviz

到此安装kscope1.6.2完成,可以在终端中输入kscope打开kscope1.6.2了,当然你可以作成一个快捷方式。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值