求助 sphinx + mysql 安装配置

时间:2021-09-09 00:37:10
由于我本机器已经有了mysql,所以要求用现有的mysql来安装sphinx。步骤如下
1,下载和现有mysql版本一致的 mysql-5.1.61.tar.gz
2,解压 至 mysql-5.1.61
3,将sphinx中的mysqlse copy 到 mysql-5.1.61/storage/sphinx/
4,cd mysql-5.1.61
5,sh BUILD/autorun.sh
6, ./configure
7, make
到了这里 make出错,信息如下:

Making all in .
make[1]: Entering directory `/home/techwis/soft/mysql-5.1.61'
make abi_headers="include/mysql/plugin.h include/mysql.h" do_abi_check
make[2]: Entering directory `/home/techwis/soft/mysql-5.1.61'
set -ex; \
for file in include/mysql/plugin.h include/mysql.h; do \
         gcc -E -nostdinc -dI -DMYSQL_ABI_CHECK \
                  -I./include \
                  -I./include/mysql \
                  -I./sql \
                  -I./include \
                  -I./include/mysql \
                  -I./sql \
                                 $file 2>/dev/null | \
                  /bin/sed -e '/^# /d' \
                            -e '/^[  ]*$/d' \
                            -e '/^#pragma GCC set_debug_pwd/d' \
                            -e '/^#ident/d' > \
                                       ./abi_check.out; \
                  /usr/bin/diff -w $file.pp ./abi_check.out; \
                  /bin/rm ./abi_check.out; \
done
+ for file in include/mysql/plugin.h include/mysql.h
+ gcc -E -nostdinc -dI -DMYSQL_ABI_CHECK -I./include -I./include/mysql -I./sql -I./include -I./include/mysql -I./sql include/mysql/plugin.h
+ /bin/sed -e '/^# /d' -e '/^[  ]*$/d' -e '/^#pragma GCC set_debug_pwd/d' -e '/^#ident/d'
+ /usr/bin/diff -w include/mysql/plugin.h.pp ./abi_check.out
+ /bin/rm ./abi_check.out
+ for file in include/mysql/plugin.h include/mysql.h
+ gcc -E -nostdinc -dI -DMYSQL_ABI_CHECK -I./include -I./include/mysql -I./sql -I./include -I./include/mysql -I./sql include/mysql.h
+ /bin/sed -e '/^# /d' -e '/^[  ]*$/d' -e '/^#pragma GCC set_debug_pwd/d' -e '/^#ident/d'
+ /usr/bin/diff -w include/mysql.h.pp ./abi_check.out
+ /bin/rm ./abi_check.out
make[2]: Leaving directory `/home/techwis/soft/mysql-5.1.61'
make[1]: Leaving directory `/home/techwis/soft/mysql-5.1.61'
Making all in include
make[1]: Entering directory `/home/techwis/soft/mysql-5.1.61/include'
make  all-am
make[2]: Entering directory `/home/techwis/soft/mysql-5.1.61/include'
make[2]: Leaving directory `/home/techwis/soft/mysql-5.1.61/include'
make[1]: Leaving directory `/home/techwis/soft/mysql-5.1.61/include'
Making all in Docs
make[1]: Entering directory `/home/techwis/soft/mysql-5.1.61/Docs'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/techwis/soft/mysql-5.1.61/Docs'
Making all in cmd-line-utils
make[1]: Entering directory `/home/techwis/soft/mysql-5.1.61/cmd-line-utils'
Making all in libedit
make[2]: Entering directory `/home/techwis/soft/mysql-5.1.61/cmd-line-utils/libedit'
gcc -DHAVE_CONFIG_H -I. -I../../include -I../../include -I../../include    -g -O2   -DUNIV_LINUX -DUNIV_LINUX -MT chared.o -MD -MP -MF .deps/chared.Tpo -c -o chared.o chared.c
chared.c: 在函数‘ch_init’中:
chared.c:421: 错误:‘ED_UNASSIGNED’未声明(在此函数内第一次使用)
chared.c:421: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其
chared.c:421: 错误:所在的函数内也只报告一次。)
chared.c: 在函数‘ch_reset’中:
chared.c:476: 错误:‘ED_UNASSIGNED’未声明(在此函数内第一次使用)
chared.c: 在函数‘ch_end’中:
chared.c:597: 错误:‘ED_UNASSIGNED’未声明(在此函数内第一次使用)
make[2]: *** [chared.o] 错误 1
make[2]: Leaving directory `/home/techwis/soft/mysql-5.1.61/cmd-line-utils/libedit'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/techwis/soft/mysql-5.1.61/cmd-line-utils'
make: *** [all-recursive] 错误 1


应该要怎么改

2 个解决方案

#1


貌似需要安装的东西很多啊 

http://www.phpwind.net/read/861680

#2


我也配置失败了

#1


貌似需要安装的东西很多啊 

http://www.phpwind.net/read/861680

#2


我也配置失败了