折腾两天终于把这个软件软件装上,记录一下,同时也让大家少走弯路.
步骤:
1.tar xzvf sysbench-0.4.12.tar.gz
2../autogen.sh
3.vim aclocal.m4
# Always use our own libtool.
LIBTOOL='$(SHELL) /usr/bin/libtool'
AC_SUBST(LIBTOOL)dnl
问题:
./sysbench: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory
Solution:
export LD_LIBRARY_PATH=/usr/local/mysql/lib
或者添加到/etc/profile里.
./configure --with-mysql-includes=/usr/local/mysql/include/ --with-mysql-libs=/usr/local/mysql/lib/
make && make install