1:查看环境
[root@localhost bin]# cat /etc/redhat-release CentOS release 6.4 (Final)
2:下载
http://down1.chinaunix.net/distfiles/sysbench-0.4.10.tar.gz
3:解压
tar zxvf sysbench-0.4.12.tar.gz
4:
yum install automake yum install libtool yum install zlib yum install gcc yum install mysql-devel yum install gcc glibc-devel glibc-headers glibc-kernheaders
5:
6:
vi configure.ac
# Checks for programs. AC_PROG_CC #AC_PROG_LIBTOOL AC_PROG_RANLIB AX_CHECK_DOCBOOK
./autogen.sh ./configure --prefix=/usr/local/sysbench > --with-mysql-includes=/usr/include/mysql > --with-mysql-libs=/usr/lib64/mysql
make make install
./sysbench --test=oltp help