安装sysbench过程报错,解决办法
来源:互联网 发布:原油ela数据 编辑:程序博客网 时间:2024/04/28 07:58
安装sysbench过程包如下错误:
../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/usr/local/mysql/lib: No such file or directory
../libtool: line 2400: Xsysbench: command not found
../libtool: line 2405: X: command not found
../libtool: line 2412: Xsysbench: command not found
../libtool: line 2420: mkdir /.libs: No such file or directory
../libtool: line 2547: X-lmysqlclient_r: command not found
../libtool: line 2547: X-lrt: command not found
../libtool: line 2547: X-lm: command not found
../libtool: line 2629: X-L/root/sysbench-0.4.12/sysbench: No such file or directory
../libtool: line 2547: X-lmysqlclient_r: command not found
../libtool: line 2547: X-lrt: command not found
../libtool: line 2547: X-lm: command not found
../libtool: line 2629: X-L/root/sysbench-0.4.12/sysbench: No such file or directory
../libtool: line 2547: X-lmysqlclient_r: command not found
../libtool: line 2547: X-lrt: command not found
../libtool: line 2547: X-lm: command not found
../libtool: line 5162: Xgcc -pthread "" "" -o @OUTPUT@ sysbench.o sb_timer.o sb_options.o sb_logger.o db_driver.o tests/fileio/libsbfileio.a tests/threads/libsbthreads.a tests/memory/libsbmemory.a tests/cpu/libsbcpu.a tests/oltp/libsboltp.a tests/mutex/libsbmutex.a drivers/mysql/libsbmysql.a -L/root/sysbench-0.4.12/sysbench -lmysqlclient_r -lrt -lm: No such file or directory
../libtool: line 5163: Xgcc -pthread "" "" -o @OUTPUT@ sysbench.o sb_timer.o sb_options.o sb_logger.o db_driver.o tests/fileio/libsbfileio.a tests/threads/libsbthreads.a tests/memory/libsbmemory.a tests/cpu/libsbcpu.a tests/oltp/libsboltp.a tests/mutex/libsbmutex.a drivers/mysql/libsbmysql.a -L/root/sysbench-0.4.12/sysbench -lmysqlclient_r -lrt -lm: No such file or directory
../libtool: line 5168: X: command not found
../libtool: line 5172: : command not found
make[2]: Leaving directory `/root/sysbench-0.4.12/sysbench'
make[1]: Leaving directory `/root/sysbench-0.4.12/sysbench'
make[1]: Entering directory `/root/sysbench-0.4.12'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/root/sysbench-0.4.12'
[root@localhost sysbench-0.4.12]#
解决方法:
1. 直接复制系统自带的libtool到项目目录,应该在/usr/bin目录下,覆盖代码文件目录下的libtool,再执行make
(没装就apt-get install libtool 或者 yum install libtool 安装一下吧)
cp /usr/bin/libtool /root/sysbench-0.4.12
2. 修改aclocal.m4文件,将上面的LIBTOOL='$(SHELL) $(top_builddir)/libtool'改成LIBTOOL='$(SHELL) /usr/bin/libtool'后重新执行./configure
[root@localhost sysbench-0.4.12]# vi aclocal.m4
LIBTOOL='$(SHELL) /usr/bin/libtool'
3. 将源码目录下libtool脚本中所有的$ECHO替换成$echo. 或者将脚本文件ltmain.sh里的$echo替换成$ECHO,都一样,重新执行./configure
# An echo program that does not interpret backslashes.
ECHO="echo"
改成: echo="echo"
- 安装sysbench过程报错,解决办法
- sysbench安装过程出现的问题解决办法
- 云服务器 安装sysbench报错./libtool: line 841: X--tag=CC: command not found
- sysbench安装
- sysbench安装
- sysbench 安装
- sysbench 安装
- sysbench安装出错(不安装mysq)的解决办法
- Linux安装Oracle 11g R2安装过程中遇到的报错及解决办法
- docker 安装报错,解决办法
- 安装libmemcached的报错与解决办法
- centos安装NPM报错解决办法
- Ubuntu 安装SecureCRT报错解决办法
- 安装odoo8后运行报错解决办法
- Drozer安装使用及报错解决办法
- centos安装matplotlib报错的解决办法
- ecshop 安装后,报错解决办法
- node-sass 安装报错解决办法
- Restoration of the Permutation
- 什么是.9图片
- 11GR1 RAC关于service/TAF的实验们
- linux_shell教程_细说shell编程
- C# 的Attribute特性 与C#的宏定义
- 安装sysbench过程报错,解决办法
- 调试器工作原理
- 1G、2G、3G、4G是什么
- lucene series 1 document 文档 索引创建
- Code First 数据迁移常用命令
- java替换中英文
- Java Comparator和Comparabler的区别
- C++技巧之operator操作符
- OC学习那些事:@class关键字