Centos Oprofile 安装过程的几个错误注意点

1. 确认oprofile 是否被编译进内核,是模块方式还是别的方式

cat /boot/config-2.6.18-128.el5 |grep OPROFILE


2. 配置中错误 ./configure

checking dynamic linker characteristics... GNU/Linuxld.so checking how to hardcode library paths into programs... immediatechecking for ld... /usr/bin/ld -m elf_x86_64 checking for kernel OProfilesupport... no

configure: error: no suitably configured kernel includetree found

错误原因:没有kernel headers

解决办法:

a. ./configure –with-kernel-support

下面是configure 的几个参数



--with-binutils=dir Path to binutils installation to use
--with-binutils-libname Lib dir name under binutils installation; [lib]]
--with-gcc=dir Path to GCC installation to use
--with-kernel-support Use 2.6 kernel (no kernel source tree required)
--with-linux=dir Path to Linux source tree
--with-module-dir=dir Path to module installation directory
--with-java=java-home Path to Java home directory
--with-extra-includes=DIR add extra include paths
--with-extra-libs=DIR add extra library paths
--with-target=cell-be Check BFD support for Cell Broadband Engine SPU profiling
--with-x use the X Window System
--with-qt-dir where the root of Qt is installed
--with-qt-includes where the Qt includes are.
--with-qt-libraries where the Qt library is installed.


b. 安装kernel-devel rpm 包

具体 细节 可以参考 :blog :http://blog.csdn.net/raintungli/article/details/5935481 中安装kernel-devel 的包


3. 配置中错误

checking for libiberty.h... no
checking for cplus_demangle in -liberty... no
configure: error: liberty library not found

错误原因: 缺少liberty 包

解决办法: 安装binutils-devel包

yum install binutils-devel -y




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值