mysql sysbench安装_sysbench安装(CentOS5.8\MySQL5.6\sysbench-0.4.12) | 学步园

Ø  下载安装包sysbench-0.4.12.tar.gz

Ø  解压并进入目录

tar xzvf sysbench-0.4.12.tar.gz

cd sysbench-0.4.12

Ø  配置

./configure

Invalid configuration `x86_64-unknown-linux-':machine `x86_64-unknown-linux' not recognized

configure: error: /bin/sh config/config.subx86_64-unknown-linux- failed

Ø  重新配置

./configure --build=x86_64

configure: error: no acceptable C compiler foundin $PATH

Ø  安装C/C++编译器

sudo yum install gcc-c++

Ø  重新配置

./configure --build=x86_64

configure: error: mysql_config executable notfound

*******************************************************************************

ERROR: cannot find MySQL libraries. If you wantto compile with MySQL support,

youmust either specify file locations explicitly using

--with-mysql-includes and --with-mysql-libs options, or make sure pathto

mysql_config is listed in your PATH environment variable. If you want to

disable MySQL support, use --without-mysql option.

*******************************************************************************

Ø  安装MySQL头文件和库文件

sudo yum install MySQL-shared

sudo yum install MySQL-devel

Ø  重新配置

./configure

Ø  编译

sudo make

../libtool: line 838: X--tag=CC: command notfound

../libtool: line 871: libtool: ignoring unknowntag : command not found

../libtool: line 838: X--mode=link: command notfound

……

Ø  升级libtool

sudo yum install libtool

之后用新的libtoll替换sysbench目录中旧的libtool后重新编译

或者直接在sysbench目录下执行autogen.sh自动在该目录安装新的libtool

Ø  重新配置

sudo make clean

./configure

Ø  编译安装

make

sudo make install

****************************

正常情况下,进入解压目录,依次执行

./autogen.sh

./configure

make

sudo make install

或者

tar xzvf sysbench-0.4.12.tar.gz

cd sysbench-0.4.12

sudo yum install gcc-c++

sudo yum install MySQL-shared

sudo yum install MySQL-devel

./configure

sudo yum install libtool(之后替换掉sysbench目录内的libtool)

make

sudo make install

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值