linux下kscope的安裝
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)
本人在安裝這些庫的時候,也遇到了一些問題,安裝的時候出現(xiàn)了:0% [Waiting for headers],然后就不動了。google了下,說是在apt-get install的過程中被中斷過(確實是這樣過),按照網(wǎng)上說的,把目錄下的/var/cache/apt/archives的一些文件刪除掉了,特別是 /var/cache/apt/archives/partial目錄下的文件。
2. 下載kscope-1.6.2
下載地址:/download/0006000/5469.shtml
下載后,解壓縮,并進入到kscope-1.6.2的源碼根目錄中。
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
安裝過程中,只記錄了這些錯誤,如果還出現(xiàn)其它錯誤,google下,一般都能找到。
4. make
make時會出現(xiàn)的問題:
錯誤1: /usr/bin/ld: cannot find -lkateinterfaces
make時提示找不到 -lkateinterfaces,不用擔心,該參數(shù)是要找動態(tài)鏈接庫,其實沒有動態(tài)鏈接庫,只有靜態(tài)鏈接庫,該庫位于/usr/lib/,這個時候,切換到src目錄下:
[ /home/lanch/Download/kscope-1.6.2]$cd src
[ /home/lanch/Download/kscope-1.6.2/src]$grep -n -lkateinterfaces Makefile
將Makefile文件中使用-lkateinterfaces 的地方,替換為/usr/lib/,接著,退回到上層目錄cd ,進行make,就會大功告成。
5. sudo make install
這個過程中沒現(xiàn)過錯誤。
6. 安裝cscope,ctags,graphviz
sudo apt-get install cscope ctags graphviz
到此安裝kscope1.6.2完成,可以在終端中輸入kscope打開kscope1.6.2了,當然你可以作成一個快捷方式,這里就不再說明。
使用了下,kscope1.6.2總體不不錯,速度比eclipse快多了,功能和界面比source navigator強多了……