您的位置:首页 > 运维架构 > Linux

在CentOS(64bit)上安装Sysbench

2012-04-03 00:00 309 查看
前置条件:已安装GCC和libtool的最新版本;

安装脚本:

tar zxf sysbench-0.4.12.tar.gz
cd sysbench-0.4.12
./autogen.sh
./configure --with-mysql-includes=#MYSQL_HOME#/include --with-mysql-libs=#MYSQL_HOME#/lib && make && make install

错误一:

../libtool: line 838: X--tag=CC: command not found
../libtool: line 871: libtool: ignoring unknown tag : command not found
../libtool: line 838: X--mode=link: command not found
../libtool: line 1004: *** Warning: inferring the mode of operation is deprecated.: command not found
../libtool: line 1005: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
../libtool: line 2231: X-g: command not found
../libtool: line 2231: X-O2: command not found
../libtool: line 1951: X-L/u01/mysql/lib: No such file or directory
../libtool: line 2400: Xsysbench: command not found

处理:

#libtool版本太久,使用系统的进行更新
cp /usr/bin/libtool libtool

错误二:

./sysbench: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory

处理:

#使用该脚本设置LD_LIBRARY_PATH来解决sysbench找不到mysql的lib的问题
export LD_LIBRARY_PATH=/usr/local/mysql/lib
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: