sysbench 安装遇到的问题

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

 tar zxf sysbench-0.4..tar.gz
cd sysbench-0.4.
./autogen.sh
./configure
make && make install

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

../libtool: line : X-lmysqlclient_r: command not found
../libtool: line : X-lpthread: command not found
../libtool: line : X-lz: command not found
../libtool: line : X-ldl: command not found
../libtool: line : X-lrt: command not found
../libtool: line : X-lm: command not found
../libtool: line : X-L/home/MEIZUdb/sysbench-0.4./sysbench: No such file or directory
../libtool: line : X-lmysqlclient_r: command not found
../libtool: line : X-lpthread: command not found
../libtool: line : X-lz: command not found
../libtool: line : X-ldl: command not found
../libtool: line : X-lrt: command not found
../libtool: line : 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即可

上一篇:nginx proxy优化


下一篇:Uri.AbsoluteUri 与 Uri.ToString() 的区别