ubuntuインストールdbench

1265 ワード

公式ドキュメントのインストール(住所: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