CC=gcc CFLAGS=”-O2″ \
./configure -prefix=/usr/local/httpd2_2_22 –enable-proxy –enable-proxy-ajp –enable-proxy-balancer –enable-expires\
–enable-headers –disable-asis –disable-auth -disable-autoindex –disable-userdir –enable-rewrite \
–disable-cgi –disable-cgid –disable-access –enable-charset-lite –enable-deflate –disable-status
会提示找不到 zlib ,实际上因为没有 zlib.h,在网上找来的 opensuse zlib-devel rpm也不行
解决方法,安装suse第二张光盘中的zlib source rpm,在 /usr/src/packages/SOURCES里面找到 zlib的压缩包,解压后运行 ./configure ; make;make install,之后就ok了