用unixbench测试

unixbench 是一个很流行的测试软件,现将安装步骤和使用介绍如下:

1、取得root权限,然后随便找个目录,比如可以cd ~或者cd /tmp

2、yum -y install gcc
3、wget http://byte-unixbench.googlecode.com/files/unixbench-5.1.2.tar.gz (如果有版本更新,请自行更换路径,比如 wget http://byte-unixbench.googlecode.com/files/UnixBench5.1.3.tgz
4、tar -zxvf unixbench-5.1.2.tar.gz
5、cd unixbench-5.1.2

6、./Run


有可能出现错误提示信息

gcc -o ./pgms/ubgears -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/ubgears.c -lGL -lXext -lX11
./src/ubgears.c:51:19: error: GL/gl.h: No such file or directory
./src/ubgears.c:52:20: error: GL/glx.h: No such file or directory
./src/ubgears.c:129: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘view_rotx’
…省略
./src/ubgears.c:632: error: ‘GL_RENDERER’ undeclared (first use in this function)
./src/ubgears.c:633: error: ‘GL_VERSION’ undeclared (first use in this function)
./src/ubgears.c:634: error: ‘GL_VENDOR’ undeclared (first use in this function)
./src/ubgears.c:635: error: ‘GL_EXTENSIONS’ undeclared (first use in this function)
./src/ubgears.c:643: warning: implicit declaration of function ‘glXDestroyContext’
make: *** [pgms/ubgears] Error 1

**********************************************
Run: “make all” failed; aborting


运行命令:yum install -y SDL-devel mesa-libGL-devel


Can't locate Time/HiRes.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./Run line 6.
BEGIN failed--compilation aborted at ./Run line 6.


运行命令:yum install perl-Time-HiRes

你可能感兴趣的:(用unixbench测试)