Hunter的大杂烩 技术学习笔记

2012-05-19

suse11sp1下编译apache 2.2.22的问题

Filed under: 技术话题 — hunter @ 3:43 pm

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了

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress