Sysbench is a very good tool to test your database performance .
I got the following error today while setting up sysbench version 0.4.12
Error : –
/bin/sh ../libtool --tag=CC --mode=link gcc -pthread -g -O2 -o sysbench sysbench.o sb_timer.o sb_options.o sb_logger.o db_driver.o tests/fileio/libsbfileio.a tests/threads/libsbthreads.a tests/memory/libsbmemory.a tests/cpu/libsbcpu.a tests/oltp/libsboltp.a tests/mutex/libsbmutex.a drivers/mysql/libsbmysql.a -L/usr/local/mysql/lib/ -lmysqlclient_r -lrt -lm ../libtool: line 838: X--tag=CC: command not found ../libtool: line 871: libtool: ignoring unknown tag : command not found ../libtool: line 838: X--mode=link: command not found ../libtool: line 1004: *** Warning: inferring the mode of operation is deprecated.: command not found ../libtool: line 1005: *** Future versions of Libtool will require --mode=MODE be specified.: command not found ../libtool: line 2231: X-g: command not found ../libtool: line 2231: X-O2: command not found ../libtool: line 1951: X-L/usr/local/mysql/lib/: No such file or directory ../libtool: line 2400: Xsysbench: command not found ../libtool: line 2405: X: command not found ../libtool: line 2412: Xsysbench: command not found ../libtool: line 2420: mkdir /.libs: No such file or directory ../libtool: line 2547: X-lmysqlclient_r: command not found ../libtool: line 2547: X-lrt: command not found ../libtool: line 2547: X-lm: command not found ../libtool: line 2629: X-L/root/sysbench-0.4.12/sysbench: No such file or directory ../libtool: line 2547: X-lmysqlclient_r: command not found ../libtool: line 2547: X-lrt: command not found
Confused ?
After getting the above error , I tried to run ” autogen.sh ” and its leads to the fix
sysbench/drivers/mysql/Makefile.am:17: library used but `RANLIB' is undefined sysbench/drivers/mysql/Makefile.am:17: The usual way to define `RANLIB' is to add `AC_PROG_RANLIB' sysbench/drivers/mysql/Makefile.am:17: to `configure.ac' and run `autoconf' again. sysbench/drivers/oracle/Makefile.am:17: library used but `RANLIB' is undefined sysbench/drivers/oracle/Makefile.am:17: The usual way to define `RANLIB' is to add `AC_PROG_RANLIB' sysbench/drivers/oracle/Makefile.am:17: to `configure.ac' and run `autoconf' again. sysbench/drivers/pgsql/Makefile.am:17: library used but `RANLIB' is undefined
How to fix ? : –
1) Edit configure.ac file and hash the 75th line and add a new entry as follows
vi sysbench-0.4.12/configure.ac
#AC_PROG_LIBTOOL
AC_PROG_RANLIB
2) ./autogen.sh
3) ./configure
4) make & make install
That’s it !!! 😉
Recent Comments