您的位置:首页 > 运维架构

ubuntu 10.04安装 kscope

2012-05-30 20:15 363 查看
1.安装kde环境支持:

sudo apt-get installkdelibs
(解决kde-config not found)

sudo apt-get install xorg-dev (解决error:can't findX includes?)

sudo apt-get install kdelibs4-dev kdelibs4c2a (解决no KDE headersinstalled)

本 人在安装这些库的时候,也遇到了一些问题,安装的时候出现了:0% [Waiting forheaders],然后就不动了。google了下,说是在apt-getinstall的过程中被中断过(确实是这样过),按照网上说的,把目录下的/var/cache/apt/archives的一些文件删除掉了,特别是/var/cache/apt/archives/partial目录下的文件。

2.下载kscope-1.6.2

下载地址:http://download.chinaunix.net/download/0006000/5469.shtml

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

还可以在官网上下:
http://sourceforge.net/projects/kscope/files/kscope/
3.安装:

A.配置.configure

用命令./configure --without-arts进行config

这个时候,会提示找不到这个,找不到那个,按照提示,将所需要的软件包都 安装上。列出几个如下:

错误1: configure: error: C++ preprocessor "/lib/cpp" fails sanitycheck

解决方法:sudo apt-get install build-essential ,然后再./configure--without-arts

错误2: configure: error: Lex/Flex is required inorder to build KScope

解决方法:sudo apt-get install flex,然后再./configure --without-arts

错误3: configure: error: Yacc/Bison is required inorder to build KScope

解决方法:sudo apt-get install bison,然后再./configure --without-arts

安装过程中,只记录了这些错误,如果还出现其它错误,google下,一般都能找到。

在我安装过程中报了:
1.checking for Qt... configure:error: Qt (>= Qt 3.3 and < 4.0)(headers and libraries) not found. Please check yourinstallation!
sudo apt-get installlibqt3-mt-dev
2.checking for KDE... configure:error:

in the prefix, you'vechosen, are no KDE headers installed. This willfail.

So, check this please anduse another prefix!
sudo apt-get installkdelibs4-dev
报错后try:
sudo apt-get update
sudo apt-get installkdelibs4-dev

配置成功~

B.make

make时会出现的问题:

错误1: /usr/bin/ld: cannot find -lkateinterfaces

make时提示找不到-lkateinterfaces,不用担心,该参数是要找动态链接库,其实没有动态链接库,只有静态链接库,该库位于/usr/lib/libkatepartinterfaces.la,这个时候,切换到src目录下:

[ /home/lanch/Download/kscope-1.6.2]$cd src

[ /home/lanch/Download/kscope-1.6.2/src]$grep -n -lkateinterfacesMakefile(evisie注:这行命令并没有起到实际作用,所以我直接在/src/Makefile文件中替换了-lkateinterfaces,查找方法和windows类似,Ctrl+F)

将Makefile文件中使用-lkateinterfaces的地方,替换为/usr/lib/libkatepartinterfaces.la,接着,退回到上层目录cd ..,进行make,就会大功告成。

C.sudo make install

4. 安装cscope,ctags,graphviz

sudo apt-get install cscope ctags graphviz
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: