ubuntu 10.04 下安装 kscope1.6.2

出现 错误时因为 没有KDE环境; 

下载skcope 的程序;最新版不好用,所有就是用1.6.2 版本 


http://download.chinaunix.net/download/0006000/5469.shtml

下载完解压;

tar zxvf kscope-1.6.2.tar.gz


cd kscope-1.6.2

执行 ./configure
结果如下
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for kde-config... not found
configure: error: The important program kde-config was not found!
Please check whether you installed KDE correctly.
 

最后两行出现错误这是因为少了 如下这个库;
kdelibs4c2a

直接 sudo apt-get install kdelibs4c2a安装

然后 从新出现问题了 

checking for X... configure: error: Can't find X includes. Please check your installation and add the correct paths!
lipeng@lipeng-desktop:~/Downloads/kscope-1.6.2$ sudo apt-get install libx11-dev xorg-dev

sudo apt-get install libx11-dev xorg-dev


checking for Qt... configure: error: Qt (>= Qt 3.3 and < 4.0) (headers and libraries) not found. Please check your installation!
For more details about this problem, look at the end of config.log.

原因:系统中没有软件所需的Qt 
直接输入如下命令安装
sudo apt-get install qt3-apps-dev


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

原因:在Gnome 环境中安装 KDE 应用程序
解决: 
sudo apt-get update
udo apt-get install kdelibs4-dev kdelibs4c2a 


configure error: The important program mcopidl was not found!
Please check whether you installed aRts correctly or use
--without-arts to compile without aRts support(this will remove functionality)


使用 ./configure --without-arts

error: Lex/Flex is required in order to build KScope
解决办法:
sudo apt-get install flex


安装完后:
Good - your configure finished. Start make now
此时 已经成功,可以make 了;

如果你安装了4.0以上版本,则在make 的时候可能出现如下错误:

File generated with too old version of Qt Designer (3.3)

此时 可以重新设置一下环境变量:(以上默认Qt3.3 的qmake 默认安装在如下目录)

export QTDIR=/usr/bin  

继续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 -lkateinterfaces Makefile

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

  5. sudo make install

  这个过程中没现过错误。

  6. 安装cscope,ctags,graphviz

  sudo apt-get install cscope ctags graphviz

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

  使用了下,kscope1.6.2总体不不错,功能和界面跟 windows 底下的sourceinsight 差不多; 当然你也可以使用wince 在 linux底下安装windows所使用的SourceInsight 代码编辑器。



  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 2
    评论
您可以选择在不更改计算机中的任何内容的情况下试用Ubuntu 10.04。通过启动Live系统,您可以在不对硬盘进行更改的情况下体验Ubuntu的功能。如果您对试用结果满意,可以按照Live系统桌面上的安装小图标来将Ubuntu 10.04安装到硬盘中。如果您不需要试用,也可以选择直接启动安装程序来将Ubuntu 10.04安装到硬盘中。 要安装Ubuntu 10.04,您可以访问中文官方网站http://www.ubuntu.com.cn或英文官方网站http://www.ubuntu.com以获取更多相关信息。 另外,您还可以使用命令行安装一些额外的软件,例如Docky和Ubuntu-Tweak。通过使用命令sudo apt-get install docky,您可以安装Docky。要安装Ubuntu-Tweak,您需要执行以下步骤:首先,添加软件源,使用命令sudo add-apt-repository ppa:tualatrix/ppa。然后,更新软件源,使用命令sudo apt-get update。最后,安装Ubuntu-Tweak,使用命令sudo apt-get install ubuntu-tweak。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [安装Ubuntu 10.04系统](https://blog.csdn.net/wangll9/article/details/7284978)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *3* [Ubuntu 10.04 安装配置](https://blog.csdn.net/ocean181/article/details/7006508)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

程序员布瓜

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值