免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2270 | 回复: 5
打印 上一主题 下一主题

关于mysql的求助 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-02-17 11:26 |只看该作者 |倒序浏览
大家好,小弟是新手,想在centos6下安装mysql的压力测试工具super smack,遇到以下问题,求解决办法:
[root@localhost super-smack-1.3]# ./configure --prefix=/usr/local/super-smack-1.3 --with-mysql --with-smacks-dir=/usr/local/super-smack-1.3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... missing
checking for sh... /bin/sh
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for flex... flex
checking for flex... (cached) flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for bison... bison -y
checking for compress in -lz... yes
checking for crypt in -lcrypt... yes
checking for crypt... yes
checking for libmysqlclient...
checking for mysql_real_connect in -lmysqlclient... yes
checking for mysql.h...
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking return type of signal handlers... void
checking for gettimeofday... yes
checking for strerror... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands


Building with the following options:

MySQL Support..................... yes
PostgreSQL Support................ no
Oracle Support.................... no

If this is not what you intended, please re-run configure.

Thanks for using super-smack!

[root@localhost super-smack-1.3]# make
make  all-recursive
make[1]: Entering directory `/root/super-smack-1.3'
Making all in src
make[2]: Entering directory `/root/super-smack-1.3/src'
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/mysql      -g -O2 -c super-smack.cc
In file included from client.h:29,
                 from super-smack.cc:38:
dictionary.h: In member function ‘void Unique_dictionary::set_template(const char*)’:
dictionary.h:93: error: ‘strlen’ was not declared in this scope
super-smack.cc: In function ‘void set_parse_file(char*)’:
super-smack.cc:65: warning: deprecated conversion from string constant to ‘char*’
super-smack.cc: In function ‘void set_db_type(const char*)’:
super-smack.cc:72: warning: deprecated conversion from string constant to ‘char*’
super-smack.cc: In function ‘void print_engines()’:
super-smack.cc:126: error: ‘strlen’ was not declared in this scope
make[2]: *** [super-smack.o] Error 1
make[2]: Leaving directory `/root/super-smack-1.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/super-smack-1.3'
make: *** [all-recursive-am] Error 2


http://blog.csdn.net/historyasamirror/article/details/6539706这个帖子我也看了,但是还不能解决问题。在线等......

论坛徽章:
0
2 [报告]
发表于 2012-02-17 16:57 |只看该作者
在32位的系统上测试成功,但是在64位系统上就遇到了上面的问题,郁闷中............

论坛徽章:
33
ChinaUnix元老
日期:2015-02-02 08:55:39CU十四周年纪念徽章
日期:2019-08-20 08:30:3720周年集字徽章-周	
日期:2020-10-28 14:13:3020周年集字徽章-20	
日期:2020-10-28 14:04:3019周年集字徽章-CU
日期:2019-09-08 23:26:2519周年集字徽章-19
日期:2019-08-27 13:31:262016科比退役纪念章
日期:2022-04-24 14:33:24
3 [报告]
发表于 2012-02-18 00:07 |只看该作者

论坛徽章:
0
4 [报告]
发表于 2012-12-26 10:25 |只看该作者
LZ这个问题解决了吗?
可以贴一下解决的方法吗,谢谢!

论坛徽章:
0
5 [报告]
发表于 2012-12-28 13:29 |只看该作者
http://blog.csdn.net/cindy9902/article/details/7282386
这里能解决你的问题  但是随之而来又有1个新问题

论坛徽章:
0
6 [报告]
发表于 2013-01-07 09:47 |只看该作者
:wink:没有解决,不过我们已经不使用这正测试方式了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP