安装官方文档(地址:https://dbench.samba.org/web/download.html)
下载安装过程如下:
DBENCH is hosted as a git repository at samba.org so you must make sure you have the git tool installed.
Download
Use git to create a local branch of the official git repository for git and download the tree.
git clone git://git.samba.org/sahlberg/dbench.git dbench
This creates a local subdirectory "dbench" which is a branch of the master repository.
Later when you want to update your branch and resynchronize with the official branch you can use a "git pull" to download all the changes since you branched and resynchronize your local branch with the latest versions of the sources.
git pull
Compiling
Now you need to compile and install DBENCH.
cd dbench
./autogen.sh
./configure
make
make install
And that should be it. You should now have dbench installed on your system.
但直接安装上述过程会出错,在运行./sutogen.sh之前,需要安装autoconf:
apt-get install autoconf
./configure之前安装gcc
apt-get install gcc
./make之前安装 libpopt-dev
apt-get install libpopt-dev