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即可

相关文章:

  • 2021-10-19
  • 2021-05-03
  • 2021-05-18
  • 2021-07-30
  • 2021-09-29
  • 2021-12-14
  • 2021-06-17
  • 2021-12-14
猜你喜欢
  • 2021-12-03
  • 2021-09-11
  • 2021-04-28
  • 2022-01-03
  • 2021-03-31
  • 2021-04-26
  • 2021-10-25
相关资源
相似解决方案