DBT-2 is the closest open source implementation of commercial world known TPC-C benchmark.
Compilation is not straight forward (in my opinion) so this small post to describe all steps. Compilation done on Red Hat Enterprise Linux Server release 5.2 (Tikanga).