手机版
你好,游客 登录 注册
背景:
阅读新闻

CentOS 5.4 final下Systemtap的安装

[日期:2011-03-15] 来源:Linux社区  作者:zklth [字体:大 中 小]

    安装kernel-debuginfo步骤:

     安装kernel-debuginfo(xen内核是kernel-xen-debuginfo)时必须首先安装kernel-debuginfo-common,  否则会提示依赖错误,因为kernel-debuginfo依赖于kernel-debuginfo-common,此外,两者版本应该一致,我下载安装的是:

     kernel-debuginfo-2.6.18-194.11.4.el5.i686.rpm ( 内核是xen,则kernel-xen-debuginfo-2.6.18-194.11.4.el5.i686.rpm)

     kernel-debuginfo-common-2.6.18-194.11.4.el5.i686


     下载地址: http://debuginfo.centos.org/5/i386/


      安装 :  rpm -ivh *.rpm
      查询 :  rpm -q kernel-debuginfo 
      卸载 :  rpm -e kernel-debuginfo

安装步骤:

[root@localhost kernel-debuginfo]# ls
kernel-debuginfo-2.6.18-194.11.4.el5.i686.rpm
kernel-debuginfo-common-2.6.18-194.11.4.el5.i686.rpm
[root@localhost kernel-debuginfo]# rpm -ivh kernel-debuginfo-2.6.18-194.11.4.el5.i686.rpm
error: Failed dependencies:
        kernel-debuginfo-common-i686 = 2.6.18-194.11.4.el5 is needed by kernel-debuginfo-2.6.18-194.11.4.el5.i686
[root@localhost kernel-debuginfo]# rpm -ivh kernel-debuginfo-common-2.6.18-194.11.4.el5.i686.rpm
Preparing...                ########################################### [100%]
   1:kernel-debuginfo-common########################################### [100%]
[root@localhost kernel-debuginfo]# rpm -q kernel-debuginfo-common
kernel-debuginfo-common-2.6.18-194.11.4.el5
[root@localhost kernel-debuginfo]# rpm -ivh kernel-debuginfo-2.6.18-194.11.4.el5.i686.rpm
Preparing...                ########################################### [100%]
   1:kernel-debuginfo       ########################################### [100%]
[root@localhost kernel-debuginfo]# rpm -q kernel-debuginfo
kernel-debuginfo-2.6.18-194.11.4.el5

     

    ----------------------------------------------------------------------------

   (6)安装elfutils
     (i)CentOS5.4 final默认安装了elfutils-0.137
       #rpm –q elfutils
       elfutils-0.137-3.e15
       最好将Centos5.4发行光盘里面所有elfutils*的rpm包都装上;
       Centos5.4安装盘中有此软件包, 共有如下7个:

Cent os 5.4 final 默认安装的elfutils包
       默认已安装的有以下5个rpm包
 elfutils-0.137-3.el5.i386.rpm
  一组用来处理编译的对象的工具集合
 elfutils-libelf-0.137-3.el5.i386.rpm
  读取和写入ELF文件(Executable and Linking Format. 大意为可执行、可关联的文件格式)的库
 elfutils-libelf-devel-0.137-3.el5.i386.rpm
  libelf的开发支持
 elfutils-libelf-devel-static-0.137-3.el5.i386.rpm
  static archive of libelf
 elfutils-libs-0.137-3.el5.i386.rpm
  用于处理编译的对象的库
       还未安装的有以下几个
 elfutils-devel-0.137-3.el5.i386.rpm
  处理编译对象的开发库
 elfutils-devel-static-0.137-3.el5.i386.rpm
  处理编译对象的静态archive

     (ii)下载elfutils源码包进行安装 
        SystemTap需要elfutils软件包提供的库函数来分析调试信息。
 目前的SystemTap要求安装elfutils-0.123以上版本。
 我们可以从SystemTap的站点下载RPM或者源码来升级。
 elfutils老版本的下载地址是: ftp://sources.redhat.com/pub/systemtap/elfutils.old/
 其他版本也可以在 https://fedorahosted.org/releases/e/l/elfutils/ 下载
 或者 http://kojipkgs.fedoraproject.org/packages/elfutils/
        elfutils官网在 https://fedorahosted.org/elfutils/

linux
相关资讯       CentOS  SystemTap 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款