Feb 23, 2003
7
0
151
While installing Apache 1 / PHP5 on a brand new CentOS 5 11.8.0-C16295 server, I had problems installing mod_gzip. Not sure when this problem started, because I've installed it on other servers with no problems. Anyway, if you're getting the following error during easyapache:
Code:
cc1: error: unrecognized command line option "-Wall,-O3,-fomit-frame-pointer,-pipe"
Apache will compile just fine, but the mod_gzip object won't compile. To compile it manually:
Code:
cd /home/cpapachebuild/buildapache/mod_gzip-1.3.26.1a
/usr/local/apache/bin/apxs -Wc,"-Wall -O3 -fomit-frame-pointer -pipe" -c mod_gzip.c mod_gzip_debug.c mod_gzip_compress.c -o mod_gzip.so
/usr/local/apache/bin/apxs -A -i mod_gzip.so
The mod_gzip object will be installed and all you'll need to do is uncomment the LoadModule/AddModule lines in your httpd.conf. Hope this helps somebody!