sysbench 1.1.0安装

匿名 (未验证) 提交于 2019-12-02 23:38:02

下载安装:

下载地址:https://github.com/akopytov/sysbench

 yum -y install make automake libtool pkgconfig libaio-devel mariadb-devel openssl-devel unzip sysbench-master.zip cd sysbench-master ./autogen.sh ./configure --prefix=/usr/local/sysbench/ --with-mysql --with-mysql-includes=/usr/local/mysql/include --with-mysql-libs=/usr/local/mysql/lib make && make install ln -s /usr/local/sysbench/bin/* /usr/bin/

测试安装是否成功:

 [root@db254 sysbench-master]# /usr/local/sysbench/bin/sysbench --version          sysbench 1.1.0

如果遇到下面问题:

[root@db254 sysbench-master]# /usr/local/sysbench/bin/sysbench --version

/usr/local/sysbench/bin/sysbench: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory

解决方式:

cp /usr/local/mysql/lib/libmysqlclient.so.18 /lib64

文章来源: https://blog.csdn.net/u012976052/article/details/90906523
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!