在CentOS(64bit)上安装Sysbench

来源:岁月联盟 编辑:exp 时间:2012-04-05

前置条件:已安装GCC和libtool的最新版本; 安装脚本:1tar zxf sysbench-0.4.12.tar.gz2cd sysbench-0.4.123./autogen.sh4./configure --with-mysql-includes=#MYSQL_HOME#/include --with-mysql-libs=#MYSQL_HOME#/lib && make && make install错误一:1../libtool: line 838: X--tag=CC: command not found 2../libtool: line 871: libtool: ignoring unknown tag : command not found 3../libtool: line 838: X--mode=link: command not found 4../libtool: line 1004: *** Warning: inferring the mode of operation is deprecated.: command not found   www.2cto.com  5../libtool: line 1005: *** Future versions of Libtool will require --mode=MODE be specified.: command not found 6../libtool: line 2231: X-g: command not found 7../libtool: line 2231: X-O2: command not found 8../libtool: line 1951: X-L/u01/mysql/lib: No such file or directory 9../libtool: line 2400: Xsysbench: command not found处理: 1#libtool版本太久,使用系统的进行更新2cp /usr/bin/libtool libtool错误二: 1./sysbench: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory处理: 1#使用该脚本设置LD_LIBRARY_PATH来解决sysbench找不到mysql的lib的问题2export LD_LIBRARY_PATH=/usr/local/mysql/lib 
  作者 Neron.L