How to make apache2.2 compile mod_rewrite.so separately?

problem description

how to get apache2.2 to compile mod_rewrite.so separately and how to solve the problem if there is an error?

the platform version of the problem and what methods you have tried

recompile mod_rewrite.so:
look for the mod_rewrite.c file
find /-name mod_rewrite.c
/ home/springshine/LAMP/httpd-2.2.3/modules/mappers/mod_rewrite.c

in the source installation directory of apache

compile:
cd / home/springshine/LAMP/httpd-2.2.3/modules/mappers/
/ usr/local/apache2/bin/apxs-c mod_rewrite.c
/ usr/local/apache2/bin/apxs-I-a-n mod_rewrite mod_rewrite.la
if there is no error, there will be mod_rewrite.so in / usr/local/apache2/modules/

I follow the above operation and then the following error occurs. I don"t know what to do

related codes

/ / Please paste the code text below (do not replace the code with pictures)
[root@VM_0_4_centos mappers]-sharp / usr/local/apache/bin/apxs-c mode_rewrite.c
how to solve
Use of assignment to $[is deprecated at / usr/local/apache/bin/apxs line 86.
/ usr/local/apache/build/libtool-- silent-- mode=compile gcc-prefer-pic-D_REENTRANT-D_GNU_SOURCE- G-O2-pthread-I/usr/local/apache/include-c-o mode_rewrite.lo mode_rewrite.c & & touch mode_rewrite.slo
gcc: error: mode_rewrite.c: No such file or directory
gcc: fatal error: no input files
compilation terminated.
apxs:Error: Command failed with rc=65536

Jun.02,2022

apache is not recommended. Use openresty or nginx. In addition, I know apache seems to be in version 2.4

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e3914a-4450c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e3914a-4450c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?