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

时间:2014-03-11 17:43:11

标签: apache compilation mod-proxy

我正在尝试使用仅模块"代理并重写"来源编译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

任何人都知道我做错了什么?

感谢您的帮助!

1 个答案:

答案 0 :(得分:0)

我不确定为什么它不会在我的笔记本电脑上编译(Mint 16?),但我在Linux服务器上编译它工作得很好!它正在运行Debian 7