无法安装sqwebmail, 哪位高手能帮助我?

我已装好的 sqwebmail+mysql+vpopmail...,能用 foxmail收发邮件但安装sqwebmail, 一直不行,我甚至在不同服务器上重装几次整个系统,还是不行. 我用的是redflag 2.0,
现象如下, 请高手指点.
开始我运行以下代码:
  INCS=-I/usr/include/mysql
   export INCS
   LIBS="-L/usr/lib/mysql -lmysqlclient -lz"
   export LIBS
   CPPFLAGS=-I/usr/include/mysql
   LDFLAGS=-L/usr/lib/mysql
   export CPPFLAGS
   export LDFLAGS
  ./configure --with-cachedir --without-gzip --enable-webpass=yes
  --enable-softtimeout=300 --enable-autopurge=180 --enable-maxpurge=180
  --with-htmllibdir=/home/httpd/html/sqwebmail
  --enable-cgibindir=/home/httpd/cgi-bin
  --enable-imagedir=/home/httpd/images/sqwebmail
  --enableimageurl=/images/sqwebmail/
  --enable-mimecharset=gb2312 --with-maxargsize=5000000
  --with-maxformargsize=5000000 --with-maxmsgsize=5000000 --without-ispell
  --with-authshadow --without-authmysql --with-authldap --with-authuserdb
  --with-authpwd --without-authpam --with-authvchkpw --without-authdaemon
我查了config.log,最后三句是:
checking where to install sqwebmai cgi binary
checking where to install images
checking for gpg

屏幕循环显示如下,只好强行中断( ctrl+z):
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) 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... found
checking whether make sets ${MAKE}... (cached) yes
checking whether ln -s works... (cached) yes
checking for perl5... (cached) /usr/local/bin/perl
checking for sysconftool...... ././sysconftool
checking for gdbm_open in -lgdbm... (cached) yes
checking for gdbm_open... (cached) yes
checking for dbopen in -ldb... (cached) yes
checking for dbopen... (cached) yes
checking for db_open... (cached) yes
checking for db_env_create... (cached) no
checking where to install sqwebmail cgi binary... /home/httpd/cgi-bin
checking where to install images... /home/httpd/html/webmail
checking for gpg... (cached) /usr/bin/gpg
creating ./config.status
creating Makefile
creating dbobj.h
creating dbobj.config
creating sqwebmail.spec
configuring in numlib
running /bin/sh ./configure --with-cachedir --without-gzip --enable-webpass=yes --enable-softtimeout=300 --enable-autopurge=180 --enable-maxpurge=180 ' ' --with-db=gdbm --with-userdb=/etc/userdb --with-formdata --without-authlib-man --enable-utf7-folder-encoding --with-makedatprog=/usr/local/libexec/sqwebmail/makedatprog --with-authdaemonvar=/usr/local/share/sqwebmail/authdaemon --sysconfdir=/usr/local/share/sqwebmail --with-package=sqwebmail --with-version=2.1.1 --cache-file=.././config.cache --srcdir=.
loading cache .././config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) 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... found
checking for gawk... (cached) gawk
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -L/usr/lib/mysql) works... yes
checking whether the C compiler (gcc -L/usr/lib/mysql) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln -s works... (cached) yes
checking for ranlib... (cached) ranlib
checking how to run the C preprocessor... (cached) gcc -E
checking for uid_t in sys/types.h... (cached) yes
checking for ANSI C header files... (cached) yes
checking for pid_t... (cached) yes
creating ./config.status
creating Makefile
creating config.h
config.h is unchanged
configuring in bdbobj
running /bin/sh ./configure --with-cachedir --without-gzip --enable-webpass=yes --enable-softtimeout=300 --enable-autopurge=180 --enable-maxpurge=180 ' ' --with-db=gdbm --with-userdb=/etc/userdb --with-formdata --without-authlib-man --enable-utf7-folder-encoding --with-makedatprog=/usr/local/libexec/sqwebmail/makedatprog --with-authdaemonvar=/usr/local/share/sqwebmail/authdaemon --sysconfdir=/usr/local/share/sqwebmail --with-package=sqwebmail --with-version=2.1.1 --cache-file=.././config.cache --srcdir=.
loading cache .././config.cache