天堂

  :: :: 博问 :: 闪存 :: :: :: 订阅 订阅 :: 管理 ::

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

posted on 2014-09-29 16:10  zuoxingyu  阅读(785)  评论(0编辑  收藏  举报