zoukankan      html  css  js  c++  java
  • 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即可

  • 相关阅读:
    1462. 课程安排 IV
    最全的CSS浏览器兼容问题【FF与IE】
    this&super两个关键字的意义和用法
    Javascript this 的一些总结
    JS-封装类或对象的最佳方案
    背景色透明,里面内容(图片、文字)不透明
    css3 前端开发
    html5游戏之Box2d物理引擎集成
    Box2d引擎之元素
    西天取经第一步——制作自己的HTML5游戏
  • 原文地址:https://www.cnblogs.com/zuoxingyu/p/4000456.html
Copyright © 2011-2022 走看看