仅使用Mod_Proxy从源代码编译Apache失败



我正试图从源代码编译apache与只有模块"代理和重写"。下面是我使用的配置

 sudo ./configure --disable-actions --disable-asis --disable-autoindex --disable-cgi --disable-cgid --disable-charset-lite --disable-dir --disable-env --disable-imap --disable-include --disable-negotiation --disable-setenvif --disable-status --disable-userdir --enable-proxy --enable-proxy-connect --enable-proxy-ftp --enable-proxy-http --enable-rewrite

然后我就可以运行make

sudo make

这就是问题所在,它以这个错误结束:

Making all in support
make[1]: Entering directory `/home/james/apache2/httpd-2.0.65/support'
make[2]: Entering directory `/home/james/apache2/httpd-2.0.65/support'
/home/james/apache2/httpd-2.0.65/srclib/apr/libtool --silent --mode=link gcc  -g -O2 -pthread    -D_REENTRANT -D_GNU_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER   -I/home/james/apache2/httpd-2.0.65/srclib/apr/include -I/home/james/apache2/httpd-2.0.65/srclib/apr-util/include -I/home/james/apache2/httpd-2.0.65/srclib/apr-util/xml/expat/lib -I. -I/home/james/apache2/httpd-2.0.65/os/unix -I/home/james/apache2/httpd-2.0.65/server/mpm/prefork -I/home/james/apache2/httpd-2.0.65/modules/http -I/home/james/apache2/httpd-2.0.65/modules/filters -I/home/james/apache2/httpd-2.0.65/modules/proxy -I/home/james/apache2/httpd-2.0.65/include -I/home/james/apache2/httpd-2.0.65/modules/generators -I/home/james/apache2/httpd-2.0.65/modules/dav/main -export-dynamic -L/home/james/apache2/httpd-2.0.65/srclib/apr-util/xml/expat/lib   -o htdigest  htdigest.lo    /home/james/apache2/httpd-2.0.65/srclib/pcre/libpcre.la /home/james/apache2/httpd-2.0.65/srclib/apr-util/libaprutil-0.la /home/james/apache2/httpd-2.0.65/srclib/apr-util/xml/expat/libexpat.la /home/james/apache2/httpd-2.0.65/srclib/apr/libapr-0.la -lrt -lm -lcrypt -lnsl -lpthread -ldl
/home/james/apache2/httpd-2.0.65/srclib/apr-util/.libs/libaprutil-0.so: undefined reference to `crypt_r'
collect2: error: ld returned 1 exit status
make[2]: *** [htdigest] Error 1
make[2]: Leaving directory `/home/james/apache2/httpd-2.0.65/support'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/james/apache2/httpd-2.0.65/support'
make: *** [all-recursive] Error 1

谁知道我做错了什么?

谢谢你的帮助!

我不知道为什么它不能在我的笔记本电脑上编译(Mint 16?),但我在linux服务器上编译了它,它工作得很好!它运行Debian 7

最新更新