Sysbench
安装sysbench
- 进入到sysbench源码目录/tmp/soft/sysbench-1.0.20
1 | [root@centos7 sysbench-1.0.20]# |
- 执行autogen.sh用它来生成configure这个文件
1 | [root@centos7 sysbench-1.0.20]# ./autogen.sh |
- 执行configure && make && make install 来完成sysbench的安装
1 | [root@centos7 sysbench-1.0.20]# ./configure --prefix=/usr/local/sysbench/ --with-mysql --with-mysql-includes=/data/software/mysql8/include --with-mysql-libs=/data/software/mysql8/lib |
- 测试是否安装成功:
1 | [root@centos7 sysbench-1.0.20]# /usr/local/sysbench/bin/sysbench --version |
MySQL测试
默认已经安装好MySQL
1 | ./autogen.sh |
#ERROR: cannot find MySQL libraries. If you want to compile with MySQL support 没找到mysql库 需要用参数指定下 --with-mysql-includes和–with-mysql-libs
如何查找mysql的安装路径?
1 | 安装mysql-devel,使用mysql_config查看mysql的安装路径 |
再次执行./configure,成功。
1 | ./configure --with-mysql-includes=/usr/include/mysql --with-mysql-libs=/usr/lib64/mysql |
参考链接
https://blog.csdn.net/weixin_41561862/article/details/84651301
执行./autogen.sh过程可能会遇到如下错误
1 | [root@SqaServer sysbench-1.0.20]# ./autogen.sh |
执行./configure出现错误
1 | # 问题 |
- 标题: Sysbench
- 作者: Sunmy
- 创建于 : 2023-06-30 16:56:57
- 更新于 : 2025-06-29 21:05:24
- 链接: https://ldspdvsun.github.io/cmchvp8fw001gh0gb0aitela8/
- 版权声明: 版权所有 © Sunmy,禁止转载。
推荐阅读
推荐阅读
评论