Just recording the process I used to install the DBT2 bench-marking tool. I used OpenSuSE 12.1 for this but should work on many distributions.

cd /opt/src
wget http://downloads.mysql.com/source/dbt2-0.37.50.3.tar.gz
tar xvf dbt2-0.37.50.3.tar.gz
cd dbt2-0.37.50.3/
./configure --with-mysql
make
make install

Don’t forget to read the documentaiton to start running MySQL benchmarks…

cat README-MYSQL