The first step is to download the source code from the sysbench site, and run the normal commands as usual.
$ tar zxvf sysbench-0.4.12.tar.gzThen I got the following error:
$ cd tar zxvf sysbench-0.4.12
$ ./configure
$ make
...As you see, there are many libtool errors, so I ran the autoreconf command to generate all build related files.
../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 2231: X-rdynamic: command not found
../libtool: line 1951: X-L/usr/lib64/mysql: No such file or directory
../libtool: line 1951: X-L/usr/lib64: No such file or directory
../libtool: line 2400: Xsysbench: command not found
...
$ touch NEWS AUTHORSOk. Let's re-run the commands.
$ autoreconf -ifv
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
Putting files in AC_CONFIG_AUX_DIR, `config'.
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
autoreconf: Leaving directory `.'
$ ./configureThe errors are gone now. Next step is to install the compiled programs with the 'make install' command.
$ make
$ sudo make install
The last step is to run the sysbench command to make sure if it works ok.$ sysbench --test=cpu run
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 1
Doing CPU performance benchmark
Threads started!
Done.
Maximum prime number checked in CPU test: 10000
Test execution summary:
total time: 9.5088s
total number of events: 10000
total time taken by event execution: 9.5048
per-request statistics:
min: 0.95ms
avg: 0.95ms
max: 1.20ms
approx. 95 percentile: 0.95ms
Threads fairness:
events (avg/stddev): 10000.0000/0.00
execution time (avg/stddev): 9.5048/0.00
No comments:
Post a Comment