ITPub博客

首页 > 数据库 > MySQL > sysbench

sysbench

原创 MySQL 作者:生活怪盗 时间:2017-06-22 15:57:57 0 删除 编辑

执行configure操作:

./configure --prefix=/usr/sysbench/ --with-mysql-includes=/usr/include/mysql/ --with-mysql-libs=/usr/lib/mysql/ --with-mysql
说明:
--prefix=/usr/sysbench/                    :指定sysbench的安装目录。
--with-mysql-includes=/usr/include/mysql/  :指定安装mysql时候的includes目录。
--with-mysql-libs=/usr/lib/mysql/          :指定装mysql时候的lib目录。
--with-mysql                               :sysbench默认支持mysql,如果需要测试oracle或者pgsql则需要制定–with-oracle或者–with-pgsql。

在这里需要先执行:

cp /usr/bin/libtool /home/zhoujy/sysbench-0.4.12/libtool

再make和make install。否者会出现 libtool 报出的 Xsysbench: command not found  错误,则表示编译文件包的libtool版本太低,需要替换。

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/25911813/viewspace-2141131/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: mysql半同步复制
请登录后发表评论 登录
全部评论

注册时间:2016-11-14

  • 博文量
    19
  • 访问量
    17007