【SystemTap】 Linux下安装使用SystemTap源码安装SystemTap
2011-03-14 16:02
711 查看
文章 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: 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安装日志——删除2.6.34.7内核源码目录后出现的运行时错误
- Linux下源码阅读工具ctags的安装及使用
- 在linux环境下使用源码安装软件的步骤(通用)
- 使用RPM包工具和源码包编译安装Linux应用程序
- linux下安装使用mysql(源码安装)
- linux :内核调试神器SystemTap — 简介与使用(一)
- 【Linux笔记】samba源码安装及基本使用说明
- Linux使用源码安装软件示例
- Linux下采用二进制源码安装mysql,并配置使用mysqld命令启动服务
- 006--linux基础rpm和yum的使用和源码安装
- Linux源码安装proftpd之后无法使用service启动的解决方案
- SystemTap 使用以及安装
- Linux 软件安装使用(6)源码查看工具
- RedHat Enterprise Linux 6.4使用yum安装出现This system is not registered to Red Hat Subscription Management
- systemtap的安装和使用
- Linux下进行源码安装时如何避免找不到那些使用--prefix指定目录安装的依赖
- Linux平台使用源码安装MySQL 5.1到个人目录简易指南
- systemtap安装与使用
- 【Systemtap】Cent OS 5.4 final下Systemtap的安装