码迷,mamicode.com
首页 > 其他好文 > 详细

错误解决(fio测试工具)

时间:2015-01-07 20:34:28      阅读:1235      评论:0      收藏:0      [点我收藏+]

标签:

 目录: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测试工具)

标签:

原文地址:http://www.cnblogs.com/wutengbiao/p/4209168.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!