sysbench0.5安装

来源:互联网 发布:2016年欧洲杯网络直播 编辑:程序博客网 时间:2024/05/18 01:09
sysbench需要autoconf、automake及libtool包,如果这些包不存在,需要先安装。相关安装包见附件。

1. 安装autoconf

tar xvf autoconf-2.64.tar 

cd autoconf-2.64

./configure 

make && make install

2.  安装automake

tar -xvf automake-1.10.3.tar 

 cd automake-1.10.3

./configure  

make && make install

3. 安装libtool

 tar -zxvf libtool-2.4.2.tar.gz 

 cd libtool-2.4.2

./configure

make && make install

4. 安装sysbench 0.5

tar -zxvf sysbench-0.5.tar.gz 

 chmod +x autogen.sh

 ./autogen.sh 

./configure --with-mysql --with-mysql-includes=/usr/local/mysql3306/include --with-mysql-libs=/usr/local/mysql3306/lib 

 make && make install
 
注:
运行:sysbench -v  

如果在运行时出现下面的错误提示:.
 
 sysbench: error while loading shared libraries: libmysqlclient_r.so.16: cannot open shared object file: No such file or directory  

那么需要建一个软链接: 

ln -s /usr/local/mysql3306/lib/libmysqlclient.so.18 /usr/lib64/libmysqlclient.so.18
 
附:
http://www.kuaipan.cn/file/id_62267499554537483.htm 
 
0 0
原创粉丝点击