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

首页 → Linux教程

背景:

阅读新闻

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

[日期:2012-01-10]来源:Linux社区作者:raintungli[字体:]

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=dirPath to binutils installation to use –with-binutils-libname Lib dir name under binutils installation; [lib]] –with-gcc=dirPath 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 : 中安装kernel-devel 的包

3. 配置中错误

checking for libiberty.h… nochecking for cplus_demangle in -liberty… noconfigure: error: liberty library not found

错误原因: 缺少liberty 包

解决办法: 安装binutils-devel包

yum install binutils-devel -y

0

Linux Tmpfs 源码分析

Linux内存管理之slab机制(初始化)

相关资讯 CentOS教程

图片资讯

本文评论  查看全部评论 (0)

评论声明

最新资讯

本周热门

Linux公社简介 – 广告服务 – 网站地图 – 帮助信息 – 联系我们本站(LinuxIDC)所刊载文章不代表同意其说法或描述,,仅为提供更多信息,也不构成任何建议。Copyright © 2006-2011 Linux公社 All rights reserved 浙ICP备06018118号

人生就像是一场旅行,遇到的既有感人的,

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

相关文章:

你感兴趣的文章:

标签云: