step1:
下载安装源码 https://github.com/akopytov/sysbench
step2:
确认系统安装了相关的依赖,gcc , automake, m4等。 yum -y install automake m4 libtool
step3:
安装好特定版本的mysql
step4:
按照sysbench说明安装
./autogen.sh
./configure --with-mysql-libs=/mysql/lib/ --with-mysql-includes=/mysql/include/ //填写自定义的mysql安装lib和include路径
make
make install
/etc/profile 添加环境变量
原文:http://www.cnblogs.com/janey/p/sysbench.html