centos 8.0 安装sysbench 1.0.17

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

下载并解压sysbench-1.0.17.zip

sysbench-1.0.17.zip图片[1] - centos 8.0 安装sysbench 1.0.17 - MaxSSL
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 ***命令执行成功后,会出现下图

图片[2] - centos 8.0 安装sysbench 1.0.17 - MaxSSL

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

图片[3] - centos 8.0 安装sysbench 1.0.17 - MaxSSL

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

图片[4] - centos 8.0 安装sysbench 1.0.17 - MaxSSL

解决办法:

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

4查看是否安装成功

cd /sysbench

./bin/sysbench –version

图片[5] - centos 8.0 安装sysbench 1.0.17 - MaxSSL

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

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享