sysbench安装使用
1.下载安装包 https://github.com/akopytov/sysbench
shell> wget https://github.com/akopytov/sysbench/archive/1.0.zip -O "sysbench-1.0.zip"
shell> unzip sysbench-1.0.zip
shell> cd sysbench-1.0
- 安装依赖库
yum install automake libtool -y
3.开始安装
shell> ./autogen.sh
shell> ./configure
#ERROR: cannot find MySQL libraries. If you want to compile with MySQL support 没找到mysql库 需要用参数指定下 --with-mysql-includes和--with-mysql-libs
shell> ./configure --with-mysql-includes=/app/teledb/mysql/include/ --with-mysql-libs=/app/teledb/mysql/lib/
shell> make
shell> make install
4.执行下命令:
shell> sysbench --help
#sysbench: error while loading shared libraries: libmysqlclient.so.20: cannot open s