执行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博客 ” ,链接:http://blog.itpub.net/25911813/viewspace-2141131/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/25911813/viewspace-2141131/