sysbench 安装遇到的问题

sysbench 作为性能测试工具,提供了很多有用的参数,使用方法网络上一抓一把,这里记录下安装过程中遇到的问题已经解决办法

1 tar zxf sysbench-0.4.8.tar.gz
2 cd sysbench-0.4.8
3 ./autogen.sh
4 ./configure 
5 make && make install

在第4步的时候,出现很多

../libtool: line 2547: X-lmysqlclient_r: command not found
../libtool: line 2547: X-lpthread: command not found
../libtool: line 2547: X-lz: command not found
../libtool: line 2547: X-ldl: command not found
../libtool: line 2547: X-lrt: command not found
../libtool: line 2547: X-lm: command not found
../libtool: line 2629: X-L/home/MEIZUdb/sysbench-0.4.12/sysbench: No such file or directory
../libtool: line 2547: X-lmysqlclient_r: command not found
../libtool: line 2547: X-lpthread: command not found
../libtool: line 2547: X-lz: command not found
../libtool: line 2547: X-ldl: command not found
../libtool: line 2547: X-lrt: command not found
../libtool: line 2547: X-lm: command not found

解决办法:

1. 直接复制系统自带的libtool到项目目录,应该在/usr/bin目录下,覆盖代码文件目录下的libtool,再执行make

cp /usr/bin/libtool /root/sysbench-0.4.12

2. 修改aclocal.m4文件,将上面的LIBTOOL='$(SHELL) $(top_builddir)/libtool'改成LIBTOOL='$(SHELL) /usr/bin/libtool'后重新执行./configure

 [root@localhost sysbench-0.4.12]# vi aclocal.m4 
 LIBTOOL='$(SHELL)  /usr/bin/libtool'

之后重新make && make install即可

转载于:https://www.cnblogs.com/zuoxingyu/p/4000456.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值