2012-08-09 27 views
0

按照this post“sudo make”返回错误memcache设置

我能./configure安装libmemcache-devel的经过,但现在当我移动到下一个设置和运行sudo make我得到如下:

Making all in src 
make[1]: Entering directory `/root/tmp/memcached_functions_mysql-1.1/src' 
make all-am 
make[2]: Entering directory `/root/tmp/memcached_functions_mysql-1.1/src' 
/bin/sh ../libtool --preserve-dup-deps --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -g -O2 -MT args.lo -MD -MP -MF .deps/args.Tpo -c -o args.lo args.c 
gcc -DHAVE_CONFIG_H -I. -I../include -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -g -O2 -MT args.lo -MD -MP -MF .deps/args.Tpo -c args.c -fPIC -DPIC -o .libs/args.o 
args.c:7:19: error: mysql.h: No such file or directory 
In file included from args.c:12: 
common.h:19: error: expected ')' before '*' token 
args.c:16: error: expected ')' before '*' token 
args.c:82: error: expected ')' before '*' token 
make[2]: *** [args.lo] Error 1 
make[2]: Leaving directory `/root/tmp/memcached_functions_mysql-1.1/src' 
make[1]: *** [all] Error 2 
make[1]: Leaving directory `/root/tmp/memcached_functions_mysql-1.1/src' 
make: *** [all-recursive] Error 1 

任何想法出了什么问题?

感谢

回答

3

你缺少MySQL的开发包,你的情况mysql-devel

+0

是的,就是这样。再次感谢! – Hayden 2012-08-09 20:32:11

+0

我的确尝试过说我不得不等待7分钟才能接受。现在我无法找到像plugin_dir这样的plugin_dir显示变量;返回空白位置 – Hayden 2012-08-09 20:45:27

+0

将启动另一个线程 – Hayden 2012-08-09 20:47:34