mod_gzip is not configure on redhat5

I have redhat5 and default httpd packeges. I want to install mod_gzip on redhat5. I have mod_gzip-1.3.26.1a packege. I have already set the path apxs. whixh apxs command are showing /usr/sbin/apxs.
Then I have run the command in mod_gzip-1.3.26.1a folder
# make APXS=/usr/sbin/apxs
then show the error
/usr/sbin/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/lib/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread -I/usr/include/httpd -I/usr/include/apr-1 -I/usr/include/apr-1 -Wall,-O3,-fomit-frame-pointer,-pipe -c -o mod_gzip.lo mod_gzip.c && touch mod_gzip.slo
cc1: error: unrecognized command line option "-Wall,-O3,-fomit-frame-pointer,-pipe"
apxs:Error: Command failed with rc=65536
.
make: *** [build] Error 1

and show the command this packeges

[root@backup mod_gzip-1.3.26.1a]# rpm -qa | grep httpd
httpd-2.2.3-6.el5
system-config-httpd-1.3.3.1-1.el5
httpd-devel-2.2.3-6.el5
httpd-manual-2.2.3-6.el5

please solve this problem what can i do .

install mod_gzip

شات's picture

hello

you can fix it by :

get file

1- wget http://easynews.dl.sourceforge.net/sourceforge/mod-gzip/mod_gzip-1.3.26....

2- tar -zxf mod_gzip-1.3.26.1a.tgz

3- pico Makefile

4- do it :
Ctrl +W
and Change :
APXS?=/usr/local/sbin/apxs
To:
APXS?=/usr/local/apache/bin/apxs
and now press Ctrl +X + y

5- make

6- make install

7- edit httpd.conf

pico /usr/local/apache/conf/httpd.conf

Remove # from :
#LoadModule gzip_module libexec/mod_gzip.so
and
#AddModule mod_gzip.c

8- service httpd restart

and Enjoy ! :)

Ge3k

White Paper
Linux Management with Red Hat Satellite: Measuring Business Impact and ROI

Linux has become a key foundation for supporting today's rapidly growing IT environments. Linux is being used to deploy business applications and databases, trading on its reputation as a low-cost operating environment. For many IT organizations, Linux is a mainstay for deploying Web servers and has evolved from handling basic file, print, and utility workloads to running mission-critical applications and databases, physically, virtually, and in the cloud. As Linux grows in importance in terms of value to the business, managing Linux environments to high standards of service quality — availability, security, and performance — becomes an essential requirement for business success.

Learn More

Sponsored by Red Hat

White Paper
Private PaaS for the Agile Enterprise

If you already use virtualized infrastructure, you are well on your way to leveraging the power of the cloud. Virtualization offers the promise of limitless resources, but how do you manage that scalability when your DevOps team doesn’t scale? In today’s hypercompetitive markets, fast results can make a difference between leading the pack vs. obsolescence. Organizations need more benefits from cloud computing than just raw resources. They need agility, flexibility, convenience, ROI, and control.

Stackato private Platform-as-a-Service technology from ActiveState extends your private cloud infrastructure by creating a private PaaS to provide on-demand availability, flexibility, control, and ultimately, faster time-to-market for your enterprise.

Learn More

Sponsored by ActiveState