歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> CentOS Fedora RedHat安裝Kscope-1.6.2報錯解決方法

CentOS Fedora RedHat安裝Kscope-1.6.2報錯解決方法

日期:2017/2/28 14:37:59   编辑:Linux教程

可能由於沒有錢賺的原因,所以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的路徑就可以找到了。

Copyright © Linux教程網 All Rights Reserved