step1:
下载安装源码 https://github.com/akopytov/sysbench
step2:
确认系统安装了相关的依赖,gcc , automake, m4 等。 yum -y install automake m4 libtool
step3:
安装好特定版本的 mysql
step4:
按照 sysbench 说明安装
export LD_LIBRARY_PATH=/mysql/libsource /etc/profilestep5:sysbench --help 验证是否成功
- ./autogen.sh
- ./configure --with-mysql-libs=/mysql/lib/ --with-mysql-includes=/mysql/include/ //填写自定义的mysql安装lib和include路径
- make
- make install
- /etc/profile 添加环境变量
来源: http://www.bubuko.com/infodetail-1980881.html