您的位置:首页 > 其它

sysbench工具安装和使用报错三例

2016-08-27 06:59 459 查看
1.错误一:
sysbench 0.5使用报错:

[root@mvxl0781 bin]# sysbench --help

sysbench: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory
解决方法:
vi /etc/profile

export LD_LIBRARY_PATH=/usr/local/mysql/lib

source /etc/profile

2.错误二:
sysbench 0.4.12使用报错:

/usr/bin/ld: cannot find -lmysqlclient_r

collect2: ld returned 1 exit status

make[1]: *** [sysbench] Error 1
解决方法:
cd /usr/lib64/mysql

# cd /usr/local/mysql

# mv lib lib.bak

# ln -s /usr/lib64/mysql /usr/local/mysql/lib

ln -s libmysqlclient_r.so.16 libmysqlclient_r.so

3.错误三:
sysbench 0.4.12编译报错:

../libtool: line 841: X--tag=CC: command not found

../libtool: line 874: libtool: ignoring unknown tag : command not found

../libtool: line 841: X--mode=link: command not found

../libtool: line 1007: *** Warning: inferring the mode of operation is deprecated.: command not found

../libtool: line 1008: *** Future versions of Libtool will require --mode=MODE be specified.: command not found

解决方法:
修改aclocal.m4文件,将上面的LIBTOOL='$(SHELL) $(top_builddir)/libtool'改成LIBTOOL='$(SHELL)  /usr/bin/libtool'后重新执行./configure
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: