序号步骤说明执行命令执行结果备注
1

下载并解压sysbench-1.0.17.zip

sysbench-1.0.17.zip
2安装依赖文件

yum install automake libtool -y

yum install /usr/include/libpq-fe.h

3安装sysbench

cd sysbench-1.0.17

./autogen.sh

./configure \
–prefix=/sysbench \
–with-pgsql \
–without-mysql \
–with-pgsql-includes=/opt/module/pgsql/include \
–with-pgsql-libs=/opt/module/pgsql/lib

make

make install

./configure ***命令执行成功后,会出现下图

1、若只执行./configure,会报如下错误

2、执行make后,报如下错误

解决办法:

yum install /usr/include/libpq-fe.h

4查看是否安装成功

cd /sysbench

./bin/sysbench –version

参考链接:Sysbench下载安装和基本使用-CSDN博客