在CentOS(64bit)上安装Sysbench

本文详细介绍了在安装Sysbench过程中遇到的libtool版本过旧和找不到mysql库的问题,并提供了相应的解决方案,包括更新libtool版本和设置LD_LIBRARY_PATH来解决依赖库问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

前置条件:已安装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


转载于:https://my.oschina.net/neron/blog/52297

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值