mod_evasive, strange error when trying to install

jols

Well-Known Member
Mar 13, 2004
1,107
3
168
Getting this on the final step:

[/usr/local/src/mod_evasive]# /usr/local/apache/bin/apxs -cia mod_evasive20.c
/usr/local/apache/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/local/apache/include -c -o mod_evasive20.lo mod_evasive20.c && touch mod_evasive20.slo
as: error while loading shared libraries: libbfd-2.17.50.0.6-12.el5.so: cannot open shared object file: No such file or directory
apxs:Error: Command failed with rc=65536

--------------

Note: "error while loading shared libraries: libbfd-2.17.50.0.6-12.el5.so: cannot open shared object file: No such file or directory"

--------------

Also when I try:

yum install httpd-devel

I get this:

Loaded plugins: rhnplugin, security
Excluding Packages in global exclude list
Finished
Setting up Install Process
No package httpd-devel available.
Nothing to do

Any ideas would be greatly appreciated.
 

jols

Well-Known Member
Mar 13, 2004
1,107
3
168
By the way, we're running:


cPanel 11.24.5-R38506 - WHM 11.24.2 - X 3.9
REDHAT Enterprise 5.4 i686 standard on cumulus
 

jols

Well-Known Member
Mar 13, 2004
1,107
3
168
Anyone? Anyone?

Perhaps mod_evasive is no longer compatible with Apache v2.x?
 

Spiral

BANNED
Jun 24, 2005
2,018
8
193
Anyone? Anyone?

Perhaps mod_evasive is no longer compatible with Apache v2.x?
ROFL! Regarding the above comment, very funny! :rolleyes: :D

Mod_Evasive works perfectly fine with both Apache 2.0 and 2.2!

Now let's look at your error message:
error while loading shared libraries: libbfd-2.17.50.0.6-12.el5.so: cannot open shared object file
You are missing a required library from your system, bfd, and this is what is causing your compile of mod_evasive to fail.

This particular library is part of the binutils package so you might want
to try installing or reinstalling that package and your base compiler:
Code:
# yum install binutils coreutils make dialog gcc gcc-*
If you are told that it (binutils) is already installed, reinstall:
Code:
# yum -y reinstall binutils
It is possible you do have libbfd installed but in a different location from the normal typical default. In that case, you could use "whereis" and "locate" commands to find your libbfd-*.so library file and then use that location in the parameters on your apxs command building mod_evasive.