这个也是我昨天安装YTHT的问题
解决方法就是修改Makefile去掉regimage.c的编译选项
然后修改bbsdoreg.c去掉regpass变量的验证函数
编译好的程序没有图片验证码
【 在 xianlin.bbs@bbs.qxntc.edu.cn (ㄨ键盘人生√) 的大作中提到: 】
: if gcc -DHAVE_CONFIG_H -DLINUX -D_GNU_SOURCE -I. -I. -I../include -I../include -I../ythtlib -I../libythtbbs -I/usr/include/mysql -DENABLE_MYSQL -O2 -mmmx -msse -mcpu=athlon -march=athlon -pipe -DCONF_HAVE_OPENPTY -Wall -g -MT regimage.o -MD -MP -MF
: then mv -f ".deps/regimage.Tpo" ".deps/regimage.Po"; else rm -f ".deps/regimage.Tpo"; exit 1; fi
: regimage.c:2:16: gd.h: 没有那个文件或目录
: ...................
--
FROM 202.207.208.*