Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am trying to install mod_security from source. when i run ./configure I get this error:

configure: error: libxml2 is required

After that error, I executed this command:

yum install libxml2

It installed libxml2 properly. However, I'm still getting the same error from ./configure. How can I resolve this error?

share|improve this question
    
In another question you mentioned using CentOS. Why are you installing from source when you could have just done yum install mod_security? –  Burhan Ali Apr 6 '12 at 19:33

2 Answers 2

up vote 4 down vote accepted

When you build software, you need the library development package, not the shared library package. So, install libxml2-devel and your build problems should go away (or at least the error message will change).

share|improve this answer
    
Thank You Sir. it worked and mod security configured. thumbs up for you. –  Kashif Mar 25 '12 at 19:49

I don't know how to fix your compile problem, however there is an RPM for mod_security available here: http://download.fedora.redhat.com/pub/fedora/linux/development/source/SRPMS/mod_security-2.5.7-1.fc11.src.rpm

share|improve this answer
    
That particular RPM may not work, given that the OS and version being used wasn't mentioned. –  Burhan Ali Apr 6 '12 at 19:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.