首页 > 代码库 > 错误解决(fio测试工具)
错误解决(fio测试工具)
目录:cn2 cd /home/fio
fio编译错误一例
# make
CC gettime.o
In file included from fio.h:24,
from gettime.c:10:
os/os.h:45:20: error: libaio.h: No such file or directory
In file included from fio.h:30,
from gettime.c:10:
ioengine.h:23: error: field ‘iocb’ has incomplete type
make: *** [gettime.o] Error 1
解决方法:
# rpm -ivh libaio-devel-0.3.107-10.el6.x86_64.rpm
warning: libaio-devel-0.3.107-10.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing... ########################################### [100%]
1:libaio-devel ########################################### [100%]
--------------------------------------------------------------------------------------------------------------------------------------------------
问题 二 这个问题一直是 -laio 文件 自己的一些操作
[root@cn1%ancunkj fio-2.0.7]# ln -s /usr/lib64/libaio.so /usr/lib/libaio.so
[root@cn1%ancunkj fio-2.0.7]# ldconfig
[root@cn1%ancunkj fio-2.0.7]# cat README
[root@cn1%ancunkj fio-2.0.7]# yum uinstall libaio
[root@cn1%ancunkj fio-2.0.7]# yum remove libaio
[root@cn1%ancunkj fio-2.0.7]# ping mirror.centos.org
[root@cn1%ancunkj fio-2.0.7]# yum install libaio-devel
[root@cn1%ancunkj fio-2.0.7]# ./fio 最后在这里重新 加载了一次就可以了。
错误解决(fio测试工具)