CentOS Fedora RedHat安装Kscope-1.6.2报错解决方法


可能由于没有钱赚的原因,所以kscope这个免费的看代码神器从1.9.4开始似乎就没有更新了,就连1.9.4这个比较新的版本,给人感觉也像是做了一半就放弃了的产品,还远远比不上1.6.x版本的强大,但是用rhel6或者CentOS6以上版本的系统,装kscope-1.6.2却会报错,而且错误还没有直接告诉你需要装些什么包,很有可能装了一大堆的包,到最后./configure还是过不了。以下就分享一下centos怎样顺利安装kscope-1.6.2,安装过程中系统报的错不一定都相同,但是基本按一下方法都可以解决。

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////

一、./configure出错:

checking for KDE... configure: error:
in the prefix, you've chosen, are no KDE headers installed. Thiswill fail.
So, check this please and use another prefix!

# yum install kdelibs3kdelibs3-devel

Good - your configure finished. Start make now


===============================================================

二、make出错:

/usr/bin/ld: cannot find -lkateinte rfaces
collect2: ld returned 1 exit status
make[3]: *** [kscope] 错误 1
make[3]: Leaving directory`/root/Desktop/kscope/kscope-1.6.2/src'
make[2]: *** [all] 错误 2
make[2]: Leaving directory`/root/Desktop/kscope/kscope-1.6.2/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory`/root/Desktop/kscope/kscope-1.6.2'
make: *** [all] 错误 2

# vim src/Makefile

482行改为:
kscope_LDADD = /usr/lib/libkatepartinterfaces.la-lktexteditor $(LIB_KDEUI)

接着make,然后make install 就可以解决了.
在配置kscope的时候需要找到cscope ctags 和dot的路径 ,但是找不到dot的路径,这是只要配置好yum源,然后yum-y install graphviz.i686,再猜测dot的路径就可以找到了。

如何在Ubuntu 11.10 下安装KScope

相关内容

    暂无相关文章