mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-20 19:16:40 +03:00
Updated Compilation recipes (markdown)
@@ -19,14 +19,8 @@ Sent by @elialum (See: #1039)
|
|||||||
### libModSecurity
|
### libModSecurity
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
yum install gcc-c++ flex bison curl-devel curl GeoIP-devel doxygen zlib-devel
|
yum install gcc-c++ flex bison yajl yajl-devel curl-devel curl GeoIP-devel doxygen zlib-devel
|
||||||
cd /opt/
|
cd /opt/
|
||||||
# Steal Fedora's YAJL and YAJL-devel packages
|
|
||||||
wget ftp://195.220.108.108/linux/fedora/linux/releases/23/Everything/x86_64/os/Packages/y/yajl-2.1.0-4.fc23.x86_64.rpm
|
|
||||||
rpm -i yajl-2.1.0-4.fc23.x86_64.rpm
|
|
||||||
wget ftp://195.220.108.108/linux/fedora/linux/releases/23/Everything/x86_64/os/Packages/y/yajl-devel-2.1.0-4.fc23.x86_64.rpm
|
|
||||||
rpm -i yajl-devel-2.1.0-4.fc23.x86_64.rpm
|
|
||||||
rm -rf *.rpm
|
|
||||||
git clone https://github.com/SpiderLabs/ModSecurity
|
git clone https://github.com/SpiderLabs/ModSecurity
|
||||||
cd ModSecurity
|
cd ModSecurity
|
||||||
git checkout libmodsecurity
|
git checkout libmodsecurity
|
||||||
@@ -65,8 +59,22 @@ Provided by @csanders-git
|
|||||||
### libModSecurity
|
### libModSecurity
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
yum install gcc-c++ flex bison curl-devel curl yajl yajl-devel GeoIP-devel doxygen zlib-devel
|
yum install gcc-c++ flex bison curl-devel curl libxml2-devel doxygen zlib-devel git automake libtool pcre-devel
|
||||||
cd /opt/
|
cd /opt/
|
||||||
|
# Steal Fedora's YAJL and YAJL-devel packages
|
||||||
|
wget ftp://195.220.108.108/linux/fedora/linux/releases/23/Everything/x86_64/os/Packages/y/yajl-2.1.0-4.fc23.x86_64.rpm
|
||||||
|
rpm -i yajl-2.1.0-4.fc23.x86_64.rpm
|
||||||
|
wget ftp://195.220.108.108/linux/fedora/linux/releases/23/Everything/x86_64/os/Packages/y/yajl-devel-2.1.0-4.fc23.x86_64.rpm
|
||||||
|
rpm -i yajl-devel-2.1.0-4.fc23.x86_64.rpm
|
||||||
|
# Install latest bison
|
||||||
|
yum install ftp://195.220.108.108/linux/fedora/linux/updates/23/x86_64/b/bison-3.0.4-3.fc23.x86_64.rpm
|
||||||
|
# Amazon's GeoIP-devel package does not come with geoip.pc (no idea why not)
|
||||||
|
wget ftp://rpmfind.net/linux/centos/5.11/extras/x86_64/RPMS/GeoIP-data-20090201-1.el5.centos.x86_64.rpm
|
||||||
|
wget ftp://rpmfind.net/linux/fedora/linux/releases/23/Everything/x86_64/os/Packages/g/GeoIP-1.6.6-1.fc23.x86_64.rpm
|
||||||
|
wget ftp://rpmfind.net/linux/fedora/linux/releases/23/Everything/x86_64/os/Packages/g/GeoIP-devel-1.6.6-1.fc23.x86_64.rpm
|
||||||
|
rpm -i GeoIP-1.6.6-1.fc23.x86_64.rpm GeoIP-data-20090201-1.el5.centos.x86_64.rpm
|
||||||
|
rpm -i GeoIP-devel-1.6.6-1.fc23.x86_64.rpm
|
||||||
|
rm -rf *.rpm
|
||||||
git clone https://github.com/SpiderLabs/ModSecurity
|
git clone https://github.com/SpiderLabs/ModSecurity
|
||||||
cd ModSecurity
|
cd ModSecurity
|
||||||
git checkout libmodsecurity
|
git checkout libmodsecurity
|
||||||
@@ -74,7 +82,6 @@ sh build.sh
|
|||||||
git submodule init
|
git submodule init
|
||||||
git submodule update
|
git submodule update
|
||||||
./configure
|
./configure
|
||||||
yum install ftp://195.220.108.108/linux/fedora/linux/updates/23/x86_64/b/bison-3.0.4-3.fc23.x86_64.rpm
|
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
```
|
```
|
||||||
@@ -90,7 +97,6 @@ cd /opt
|
|||||||
wget http://nginx.org/download/nginx-1.9.2.tar.gz
|
wget http://nginx.org/download/nginx-1.9.2.tar.gz
|
||||||
tar -xvzf nginx-1.9.2.tar.gz
|
tar -xvzf nginx-1.9.2.tar.gz
|
||||||
cd /opt/nginx-1.9.2
|
cd /opt/nginx-1.9.2
|
||||||
/bin/cp -f /usr/sbin/nginx /usr/sbin/nginx_original_bkp
|
|
||||||
./configure --add-module=/opt/ModSecurity-nginx
|
./configure --add-module=/opt/ModSecurity-nginx
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
|
|||||||
Reference in New Issue
Block a user