博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
SPEC2006移入docker后的运行问题
阅读量:7039 次
发布时间:2019-06-28

本文共 1363 字,大约阅读时间需要 4 分钟。

实验需要给SPEC2006的benchmark绑定CPUID,于是想到用docker分配CPU资源,写一个简单的DOCKERFILE文件完成配置

1 FROM cmbant/docker-gcc-build2 MAINTAINER jsbyxyc@me.com3 4 COPY cpu2006 /benchmarks/cpu20065 WORKDIR /benchmarks/cpu20066 CMD ['runspec']

然后运行

docker build -t [image name] .

之后执行

docker run -it --rm --cpuset-cpus=1 spec /bin/bash

进入docker中命令行

执行

source shrcrunspec --noreportable bzip2

出现错误 bad interpreter: No such file or directory

官方论坛中找到解决方法,具体描述如下:

runspec.02 q. Why am I getting messages about specperl: bad interpreter? For example:

bash: /cpu2006newdir/bin/runspec: /cpu2006/bin/specperl: bad interpreter: No such file or directory

a. Did you move the directory where runspec was installed? If so, you can probably put everything to rights, just by going to the new top of the directory tree and typing "bin/relocate".

For example, the following unwise sequence of events is repaired after completion of the final line.

Top of SPEC benchmark tree is '/cpu2006'Everything looks okay.  cd to /cpu2006,source the shrc file and have at it!$ cd /cpu2006$ . ./shrc$ cd ..$ mv cpu2006 cpu2006newdir$ runspec -h | headbash: runspec: command not found$ cd cpu2006newdir/$ . ./shrc$ runspec --help | headbash: /cpu2006newdir/bin/runspec: /cpu2006/bin/specperl: bad interpreter: No such file or directory$ bin/relocate

运行bin/relocate即可恢复正确路径。

转载于:https://www.cnblogs.com/csxyc/p/7157890.html

你可能感兴趣的文章
【转载】说说标准服务器架构(WWW+Image/CSS/JS+File+DB)续测试环境搭建
查看>>
day13-类的重写和类的私有方法
查看>>
cmd 操作命令
查看>>
java.lang.NoSuchMethodError
查看>>
糗事⊙︿⊙
查看>>
前端工程师的未来
查看>>
JDBC原理
查看>>
Firefly distributed模块的原理与twisted中PB远程调用协议
查看>>
php模拟post提交数据,用处很多,可用来网站的采集,登陆等等
查看>>
Gabor学习笔记
查看>>
Python深入02 上下文管理器
查看>>
SELinux
查看>>
Cisco交换机基础命令 + Win Server08 R2 多网卡配置链路聚合
查看>>
Android简单封装类似JQuery异步请求
查看>>
php中的html元素
查看>>
服务器线程与包关系(不断跟新)
查看>>
基于httpcore(httpclient component)搭建轻量级http服务器
查看>>
《林肯传》--[美]戴尔·卡耐基
查看>>
FZU 1686 神龙的难题 (重复覆盖)
查看>>
linux grep命令详解
查看>>