mirror of
https://github.com/pavel-odintsov/fastnetmon
synced 2024-06-06 06:26:39 +02:00
Replace PF_RING 6.0.2 by 6.0.3 everywhere
This commit is contained in:
parent
682dacfb55
commit
84aab5d3ae
|
@ -2,9 +2,9 @@ At first you should install PF_RING (you can install any latest version
|
|||
|
||||
```bash
|
||||
cd /usr/src
|
||||
wget 'http://downloads.sourceforge.net/project/ntop/PF_RING/PF_RING-6.0.2.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fntop%2Ffiles%2FPF_RING%2F&ts=1402307916&use_mirror=cznic' -OPF_RING-6.0.2.tar.gz
|
||||
tar -xf PF_RING-6.0.2.tar.gz
|
||||
cd PF_RING-6.0.2
|
||||
wget 'http://downloads.sourceforge.net/project/ntop/PF_RING/PF_RING-6.0.3.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fntop%2Ffiles%2FPF_RING%2F&ts=1402307916&use_mirror=cznic' -OPF_RING-6.0.3.tar.gz
|
||||
tar -xf PF_RING-6.0.3.tar.gz
|
||||
cd PF_RING-6.0.3
|
||||
# Debian way
|
||||
apt-get install build-essential bison flex linux-headers-$(uname -r) libnuma-dev
|
||||
# CentOS
|
||||
|
@ -27,7 +27,7 @@ Build lib:
|
|||
apt-get install -y libnuma-dev
|
||||
# CentOS
|
||||
yum install -y numactl-devel
|
||||
cd /usr/src/PF_RING-6.0.2/userland/lib
|
||||
cd /usr/src/PF_RING-6.0.3/userland/lib
|
||||
./configure --prefix=/opt/pf_ring
|
||||
make
|
||||
make install
|
||||
|
|
|
@ -29,9 +29,9 @@ Now install PF_RING
|
|||
|
||||
```bash
|
||||
cd /usr/src
|
||||
wget 'http://downloads.sourceforge.net/project/ntop/PF_RING/PF_RING-6.0.2.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fntop%2Ffiles%2FPF_RING%2F&ts=1402307916&use_mirror=cznic' -OPF_RING-6.0.2.tar.gz
|
||||
tar -xvf PF_RING-6.0.2.tar.gz
|
||||
cd PF_RING-6.0.2
|
||||
wget 'http://downloads.sourceforge.net/project/ntop/PF_RING/PF_RING-6.0.3.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fntop%2Ffiles%2FPF_RING%2F&ts=1402307916&use_mirror=cznic' -OPF_RING-6.0.3.tar.gz
|
||||
tar -xvf PF_RING-6.0.3.tar.gz
|
||||
cd PF_RING-6.0.3
|
||||
|
||||
Install kernel module:
|
||||
```bash
|
||||
|
@ -44,7 +44,7 @@ modprobe pf_ring
|
|||
|
||||
Install library:
|
||||
```
|
||||
cd /usr/src/PF_RING-6.0.2/userland/lib
|
||||
cd /usr/src/PF_RING-6.0.3/userland/lib
|
||||
./configure --disable-bpf --prefix=/opt/pf_ring
|
||||
make
|
||||
As root:
|
||||
|
|
|
@ -66,18 +66,11 @@ sub install {
|
|||
my $pf_ring_archive_path = "/usr/src/PF_RING-$pf_ring_version.tar.gz";
|
||||
my $pf_ring_sources_path = "/usr/src/PF_RING-$pf_ring_version";
|
||||
|
||||
if ($distro_type eq 'centos' && $distro_version >= 21) {
|
||||
print "6.0.2 version of PF_RING is not compatible with Fedora 21 and we should use svn version\n";
|
||||
`yum install -y subversion`;
|
||||
|
||||
`svn co https://svn.ntop.org/svn/ntop/trunk/PF_RING/ $pf_ring_sources_path`;
|
||||
} else {
|
||||
`wget $pf_ring_url -O$pf_ring_archive_path`;
|
||||
`wget $pf_ring_url -O$pf_ring_archive_path`;
|
||||
|
||||
print "Unpack PF_RING\n";
|
||||
mkdir $pf_ring_sources_path;
|
||||
`tar -xf $pf_ring_archive_path -C /usr/src`;
|
||||
}
|
||||
print "Unpack PF_RING\n";
|
||||
mkdir $pf_ring_sources_path;
|
||||
`tar -xf $pf_ring_archive_path -C /usr/src`;
|
||||
|
||||
print "Build PF_RING kernel module\n";
|
||||
`make -C $pf_ring_sources_path/kernel clean`;
|
||||
|
|
Loading…
Reference in New Issue