背景:
阅读新闻
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.
具体 细节 可以参考 :blog : 中安装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
相关资讯 CentOS教程
本文评论 查看全部评论 (0)
尊重网上道德,遵守中华人民共和国的各项有关法律法规 承担一切因您的行为而直接或间接导致的民事或刑事法律责任 本站管理人员有权保留或删除其管辖留言中的任意内容 本站有权在网站内转载或引用您的评论 参与本评论即表明您已经阅读并接受上述条款
评论声明
最新资讯