环境
os: debian_lenny
静态编译 Apache/2.2.13
- ./configure --prefix=/usr/local/apache2213 \
-
--with-mpm=worker \
-
--enable-so
错误1
静态编译mod_deflate时报错 :
- .../apx2 -i -c -a .../modules/filters/mod_deflate.c
错误提示:
- error: zlib.h: No such file or directory
因为缺少了zlib的头文件,安装了zlib的开发包就好了:
- aptitude install zlib1g-dev
错误2
加载正常,可正常生成mod_deflate.so,并自动加载配置文件,但重启时报错:
- Cannot load /usr/local/apache2213/modules/mod_deflate.so into server: /usr/local/apache2213/modules/mod_deflate.so: undefined symbol: inflateEnd
需要在配置文件的 LoadModule deflate_module modules/mod_deflate.so 的前面加载zlib.so
LoadFile /usr/lib/libz.so
LoadModule deflate_module modules/mod_deflate.so
阅读(1576) | 评论(0) | 转发(0) |