安装SpecCPU2006 on Linux of CentOS6.3, gcc4.4.7

由于在tools/bin目录中只有ia64-linux,所以在直接运行./install.sh脚本时,系统会提示直接重新安装tools工具集。该过程如1.1.1 所示。另外一个做法就是指定可用的现成的工具集,例如linux-suse101-AMD64,首先在CPU2006/tools/bk_bin目录中选择合适的工具集并拷贝到CPU2006/tools/bin目录中,(当前以 linux-suse101-AMD64为例)然后按照命令./install.sh -u linux-suse101-AMD64 进行安装即可,具体过程如1.1.2 所示。
1.1.1 Install tools set.
操作系统是centOS6.3, 内核版本是3.1.10,gcc版本是4.4.7,在安装过程中出现了一些错误,目前只将部分错误解决了,尚未最终安装成功。
1) error in make tool/perl
The following patch will fix it (as will just deleting the offending
lines, as you've probably already discovered.) This patch already part of
the current development release, but hasn't yet been folded back into the
maintenance track.
--- perl-5.8.x/makedepend.SH 2006-06-13 15:31:22.000000000 -0400
+++ perl-5.8.x-andy/makedepend.SH 2006-07-25 14:45:11.000000000 -0400
@@ -167,6 +167,7 @@
-e '/^#.*<builtin>/d' \
-e '/^#.*<built-in>/d' \
-e '/^#.*<command line>/d' \
+ -e '/^#.*<command-line>/d' \
-e '/^#.*"-"/d' \
-e '/: file path prefix .* never used$/d' \
-e 's#\.[0-9][0-9]*\.c#'"$file.c#" \
--
Andy Dougherty doughera@lafayette.edu

https://rt.perl.org/Public/Bug/Display.html?id=40675

2) error in CPU2006/tools/src/specmd5sum

注释掉md5sum.c 的line38即可。

3) error in 安装 perl-5.8.7
undefined reference to `pow'
在perl源代码目录下的Makefile中添加-lm选项即可。

4) error in too/perl
SysV.xs:7:25: error: asm/page.h: No such file or directory
解决方法: /home/lxj/CPU2006/tools/src/perl-5.8.7/ext/IPC/SysV/SysV.xs 打开对应注释即可:
include <asm/page.h>
http://www.voidcn.com/article/p-zmwyzrhx-ye.html

5)配置tools/buildtool 脚本
在安装perl时,需要用到数学库,所以在CPU2006/tools/src/buildtools文件Configure配置中添加该选项:
./Configure -Dcc="gcc -lm"

6)安装 libwww-perl-5.803出错
在该暗转该过程中会用到已经安装的perl-5.8.7,在用该perl编译该库时出错。

1.1.2 指定工具集
1) cd CPU2006/tools/bk_bin;
2) cp linux-suse101-AMD64 ../bin/ -rf
3) ./install.sh -u linux-suse101-AMD64
4) sh shrc

最新文章

  1. 理解android.intent.action.MAIN 与 android.intent.category.LAUNCHER
  2. Linux桌面选型
  3. if...else语句的应用
  4. git和其他版本控制系统的区别
  5. 【HDOJ】2054 A == B ?
  6. The first time
  7. c语言中float、double、long double在内存中存储方式
  8. How to find variable is empty in shell script
  9. C++学习笔记1--基础知识
  10. Android的ListView
  11. jQuery:图片自动变换
  12. groovy中的正则表达式操作符【groovy】
  13. 向cmd中添加字体的方法
  14. vue要点记录(待更新)
  15. Unity游戏开发常用的一些函数用法
  16. Knight Probability in Chessboard
  17. hdu1180 优先队列bfs+判断方向
  18. 如何用Photoshop画一个发光金币(unity游戏素材教程)
  19. Spark 概念学习系列之从物理执行的角度透视spark Job(十七)
  20. iOS小技巧 - 如何使UIView可以绑定点击事件

热门文章

  1. ls:未找到命令
  2. [BFS]P1434 [SHOI2002]滑雪
  3. [Fundamental of Power Electronics]-PART I-6.变换器电路-6.3 变压器隔离
  4. OO UNIT 2 个人总结
  5. Spring (三)SpringAoP
  6. 1. Mybatis 参数传递
  7. RPC理论介绍
  8. 如何在 NET 程序万种死法中有效的生成 Dump (下)
  9. Day05_22_实例化对象的JVM内存分析
  10. 基于golang分布式爬虫系统的架构体系v1.0