1. 程式人生 > >sysbench-1.0原始碼安裝

sysbench-1.0原始碼安裝

文章目錄

sysbench-1.0原始碼安裝

一、下載原始碼

wget https://codeload.github.com/akopytov/sysbench/zip/1.0

解壓縮

unzip 1.0

二、原始碼編譯

yum -y install make automake libtool pkgconfig libaio-devel mysql-devel openssl-devel
cd sysbench-1.0/
[
[email protected]
sysbench-1.0]# ./autogen.sh ./autogen.sh: running `libtoolize --copy --force' libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `config'. libtoolize: copying file `config/ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'. libtoolize: copying file `m4/libtool.m4' libtoolize: copying file `m4/ltoptions.m4' libtoolize: copying file `m4/ltsugar.m4' libtoolize: copying file `m4/ltversion.m4' libtoolize: copying file `m4/lt~obsolete.m4' ./autogen.sh: running `aclocal -I m4' ./autogen.sh: running `autoheader' ./autogen.sh: running `automake -c --foreign --add-missing' configure.ac:45: installing `config/compile' configure.ac:27: installing `config/config.guess' configure.ac:27: installing `config/config.sub' configure.ac:32: installing `config/install-sh' configure.ac:32: installing `config/missing' src/Makefile.am: installing `config/depcomp' ./autogen.sh: running `autoconf' Libtoolized with: libtoolize (GNU libtool) 2.2.6b Automade with: automake (GNU automake) 1.11.1 Configured with: autoconf (GNU Autoconf) 2.63
make -j4
make install

安裝完成的可執行檔案在/usr/local/bin/sysbench