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
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
相关文章推荐
- sysbench工具测试query cache对性能的影响
- 有的时候你太把它当回事,他就会戏弄你
- sysbench工具对innodb和myisam引擎进行oltp测试
- 阿里云的大数据支持服务
- Python的编码注释# -*- coding:utf-8 -*-
- 洛谷 P1508 Likecloud-吃、吃、吃
- 快速修改表结构的另类方法
- tuning-primer.sh性能调试工具的使用
- python 安装wheel .whl文件
- lesson2 二进制运算
- win7下强制结束进程命令
- java-基础-url
- [leetcode] 200. Number of Islands
- 80老翁谈人生(115):证监会调查方正,北大领导层将被问责
- GitLab + Jenkins + Docker + Kubernetes。
- 用脚本命令迁移复杂NTFS权限的文件夹
- c++数组的基础知识
- Apache Kafka-0.9 feature
- how to sign in with Google
- 占位