unixbench 是一个很流行的测试软件,现将安装步骤和使用介绍如下:
1、取得root权限,然后随便找个目录,比如可以cd ~或者cd /tmp
2、yum -y install gcc6、./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