下载可以到csdn.net上下载。
其他环境介绍:
1、rhel6.3 x64,最小化安装
2、mysql 5.5.40
安装步骤:
tar xzvf tar -xzvf sysbench-0.4.12.tar.gz
cd sysbench-0.4.12
./autogen.sh
./configure --prefix=/project/class2/sysbench --with-mysql=/project/class2/mysql/ --with-mysql-includes=/project/class2/mysql/include/mysql/ --with-mysql-libs=/project/class2/mysql/lib/mysql/
make
make install
报错:drv_mysql.c:35:19: mysql.h: No such file or directory
搜索所了一下mysql.h
[root@mysqlshell sysbench-0.4.12]# find / -name mysql.h
/project/class2/mysql-5.5.40/include/mysql.h
/project/class2/mysql/include/mysql.h
发现可以找到mysql.h,说明--with-mysql-includes配置不对。改为--with-mysql-includes=/project/class2/mysql/include/,就是把mysql去掉。
再执行make,ok!
在mysql 服务器上安装sysbench-0.4.12,报错。
原文地址:http://swenzhao.blog.51cto.com/3451741/1566220