【SystemTap】 Linux下安装使用SystemTap源码安装SystemTap
来源:互联网 发布:沙发床 知乎 编辑:程序博客网 时间:2024/05/19 16:38
文章 http://blog.csdn.net/zklth/archive/2010/09/28/5912785.aspx 介绍的是使用CentOS默认的SystemTap,这里介绍使用SystemTap源码独立安装SystemTap.
源码下载地址
SystemTap: ftp://sources.redhat.com/pub/systemtap/
SystemTap: ftp://sources.redhat.com/pub/systemtap/releases/
elfutils: https://fedorahosted.org/releases/e/l/elfutils/
SystemTap需要elfutils的支持,并且相应的 elfutils 版本还不能太老,否则执行SystemTap的 ./configure 时会出现如下错误:
error: elfutils, libdw too old, need 0.126+
但是安装SystemTap之前并不是要首先安装 elfutils ,而是在配置 SystemTap 时指定与 elfutils 相关的参数,使得在编译安装SystemTap时自动编译
--------------------------------------------------
cd /local/zkl/systemtap-1.1
./configure --with-elfutils=/local/zkl/elfutils-0.137 --prefix=/local/zkl/SystemTap
( 配置systemtap安装参数,指定 elfutils 的源码目录以及SystemTap的安装路径 )
make
make install
执行完毕,SystemTap安装在 /local/zkl/SystemTap 下
--------------------------------------------------
[root@hdfs05 SystemTap]# ls
bin etc include lib libexec share
[root@hdfs05 SystemTap]# bin/stap -V
SystemTap translator/driver (version 1.1/0.137 non-git sources)
Copyright (C) 2005-2009 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
系统默认安装的SystemTap可以不用卸载,因为卸载时可能会卸载一些其它相关的包,以下是查看系统默认安装的 systemtap,
[root@hdfs05 SystemTap]# rpm -q systemtap
systemtap-0.6.2-1.el5
我们只需要通过配置环境变量就能使执行命令时首先在我们安装的SystemTap中查找命令:
vim ~/.bashrc
export PATH=/local/zkl/SystemTap/bin:$PATH
source ~/.bashrc
[root@hdfs05 SystemTap]# stap -V
SystemTap translator/driver (version 1.1/0.137 non-git sources)
Copyright (C) 2005-2009 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
========================
- 【SystemTap】 Linux下安装使用SystemTap源码安装SystemTap
- systemtap安装
- SYSTEMTAP安装
- systemtap安装
- ubuntu 11.04下安装systemtap
- Fedora下的SystemTap安装
- Centos 6.4下SystemTap安装
- systemtap
- SystemTap
- SystemTap
- systemtap
- 【Systemtap】Cent OS 5.4 final下Systemtap的安装
- ubuntu 11.10 安装systemtap
- ubuntu 11.10 安装systemtap
- ubuntu 11.10 安装systemtap
- ubuntu 13.10安装systemtap
- ubuntu安装systemtap
- UBUNTU 10.04安装SYSTEMTAP
- 虚拟机Vmware提示:host usb device connections disabled 虚拟机不能连接USB设备
- linux mysql双机热备
- 福岛核事故和切尔诺贝利核事故的比较
- C语言宏的高级应用
- Axis2的使用
- 【SystemTap】 Linux下安装使用SystemTap源码安装SystemTap
- C语言的变参
- MyEclipse,Eclipse ,Source not found 收藏
- actionscript 's http post with underscore problem
- 转载:解决VMware中的linux系统无法满屏(centos5.2)
- 检测tomcat服务状态,自动重启Tomcat
- Eclipse 保存 UTF-8
- EXT 将gridpanel中选中的值设置到from中
- STL模板(摘要)一