You have the library installed, but you also need to install the development package in order to build a binary against it.
So I think:
yum install pcre-devel
And also the dev packages for libxml2 and apr and apr-util.
-B
From: Najmeh Rezatash
To: mod-security-users <at> lists.sourceforge.net
Sent: Tue Nov 04 07:03:02 2008
Subject: [mod-security-users] Help me on installing modsecurity-apache_2.5.7
Hi,
I'm installing modsecurity-apache_2.5.7 on fedora core v.9, the apache version is
2.2.8. actually i'm not very familiar with linux stuffs, it's my first experience...
i'm installing it according to the manual associated with the module, it's like this:
-----------------------------------------------------------------------------------------------------------------------------------
ModSecurity installation consists of the following steps:
1. ModSecurity 2.x works with Apache 2.0.x or better.
2. Make sure you have mod_unique_id installed.
3. (Optional) Install the latest version of libxml2, if it isn't already installed on the server.
4. Unpack the ModSecurity archive
5. Edit Makefile to configure the path to the Apache ServerRoot directory. You can check this by
identifying the ServerRoot directive setting in your httpd.conf file. This is the path that was
specified with the "--install-path=" configuration flag during compilation (for example, in Fe-
dora Core4: top_dir = /etc/httpd).
6. (Optional) Edit Makefile to enable ModSecurity to use libxml2 (uncomment line DEFS = -
and configure the include path (for example:
DWITH_LIBXML2) IN-
CLUDES=-I/usr/include/libxml2)
7. Compile with make
8. Stop Apache
9. Install with make install
10. (Optional) Add one line to your configuration to load libxml2: LoadFile /
usr/lib/libxml2.so
11. Add one line to your configuration to load ModSecurity: LoadModule secur-
ity2_module modules/mod_security2.so
12. Configure ModSecurity
13. Start Apache
14. You now have ModSecurity 2.x up and running.
--------------------------------------------------------------------------------------------------------------------------------------------------
in CHANGES_2.5.7.txt file associated with this version of modsec. they mentioned the following change at installing modsec:
"Build is now 'configure' based: ./configure && make && make install"
when i go to the "/modsecurity-apache_2.5.7/apache2" directory and type command: ./configure, it says "pcre library is not installed"
i know it's already installed on my system, but i reinstalled it again using "yum install pcre" .
my question is:
1-what should i do for this error?
2- where will "pcre library" be installed?
3- how can i get a detailed installation guide to install ModSec successfully?
plz help me a.s.a posible,
thanks amillion......