Attempting to install mod_security 2.5.7 on CentOS 5.2 x86_64.


Not available via yum from main CentOS repo or CentOS extras.

No binary (rpm) available at for CentOS.

Therefore installing from source using the distribution file



I made it past the config stage by installing all required packages.

Now make is failing because the loader can’t find the library ‘z’.

Can anyone tell me what the library ‘z’ is?


/usr/bin/ld: skipping incompatible /usr/lib/ when searching for -lz

/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz

/usr/bin/ld: cannot find -lz

collect2: ld returned 1 exit status

apxs:Error: Command failed with rc=65536


make: *** [] Error 1