-
Notifications
You must be signed in to change notification settings - Fork 102
/
INSTALL
83 lines (55 loc) · 2.81 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
=================================================================
NOTE: These instructions are from the 2006 release of ngrep 1.45.
They are sparse but will still give you the gist. Otherwise
try ngrep from your favorite package manager!
=================================================================
ngrep Installation Guide
------------------------
1. Install the latest Packet Capture Library
In orer to compile ngrep on any platform, the relevant packet capture
(PCAP) client support library must be installed.
On UNIX, this is called ``libpcap'' and can be installed either from
source or from a distribution's particular package management system.
Some distributions separate the library itself from its development
headers (i.e. libpcap-devel), so make sure to install both if this is
the case.
On Windows, the client support library is called ``WinPcap Developer's
Pack'' and should be unpacked inside the parent directory of the ngrep
source tree.
The latest versions can be found at:
UNIX: http://tcpdump.org/release/
Win32: http://www.winpcap.org/
2. Unpack the ngrep source
Once the client packet capture client support library is installed,
unpack the ngrep source to a directory.
On Windows, this must be under the same parent directory as the
WinPcap Developer's Pack.
3. Compile the ngrep program
On UNIX, type the following from the root of the ngrep source tree:
% ./configure && make
On Windows, open the ``ngrep.sln'' file located in the ``win32''
subdirectory of the ngrep source tree using Visual Studio.NET. From
there you should be able to Build the solution in either Debug or
Release mode. Once this is done, copy the resulting ``ngrep.exe''
(located in either the ``Debug'' or ``Release'' subdirectory depending
on compile configuration) into any directory in your path for easy
usage (``c:\windows'', for instance).
Please ignore the warnings associated with the GNU Regex library
included in the ngrep source tree.
4. Install the PCAP kernel driver
ngrep is a PCAP-based program and therefore requires the PCAP kernel
driver to be installed before it will function properly.
The PCAP Driver is already integrated into the vast majority of UNIX
and Linux kernels released within the last ~20 years.
The Windows Platform, however, does not come with an integrated PCAP
kernel driver by default, so it is necessary to install one before
ngrep will work.
Getting Help
------------
On UNIX, if you still have problems compiling or are compiling on an
unsupported OS, try playing with other build types -- i.e. if you have
a BSD derived system, try the BSD build type.
If you still have problems, please submit an issue on GitHub or feel
free to email me, however please try to help yourself first and search
Google for possible answers before reaching out.
Jordan Ritter <jpr5@darkridge.com>