Welcome 微信登录

首页 / 操作系统 / Linux / CentOS Oprofile 安装过程的几个错误注意点

1. 确认oprofile 是否被编译进内核,是模块方式还是别的方式cat /boot/config-2.6.18-128.el5 |grep OPROFILE

2. 配置中错误 ./configurechecking 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... noconfigure: 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 -yLinux Tmpfs 源码分析Linux内存管理之slab机制(初始化)相关资讯      CentOS教程 
  • CentOS上使用Dropbox  (02/07/2013 09:11:47)
  • CentOS 网络设置修改  (02/04/2013 21:28:42)
  • CentOS如何安装whois命令  (01/20/2013 14:33:29)
  • CentOS 下修改/dev/shm 大小解决  (02/04/2013 21:30:15)
  • CentOS 注销在线用户, Linux 注销  (02/04/2013 21:24:06)
  • CentOS安装完重启后不能进入终端  (01/02/2013 16:04:02)
本文评论 查看全部评论 (0)
表情: 姓名: 字数