source: trunk/docs/Win32Readme.txt @ 2102

Revision 2102, 3.3 KB checked in by aturner, 19 months ago (diff)

update. refs #347

  • Property svn:keywords set to author date id revision
Line 
1$Id$
2This document attempts to explain how to get tcpreplay compiled and running
3under Windows.  Please note that this document is a work in progress and
4Windows support in general considered EXPERIMENTAL right now.
5
6
7Background:
8
9Tcpreplay is not a native Win32 application right now.  Hence it requires
10Cygwin. (http://www.cygwin.com).  Cygwin creates a Linux-like environment
11on your Windows system which allows Linux/UNIX programs to run after a
12recompile.
13
14Tcpreplay supports numerous API's for sending packets depending on the
15operating system.  Under Windows, the only supported method of sending
16packets is with WinPcap 4.0.  (http://www.winpcap.org)  Please be sure to
17install both the WinPcap driver AND the developer pack.
18
19Right now, I've only done testing under Windows XP.  My guess is that 2000
20and 2003 should have no problems.  Since WinPcap and Cygwin are EOL'ing
21support for Win98/ME, I doubt that they'll ever be supported.  Not sure
22the story on Vista, but I assume WinPcap & Cygwin will support them sooner
23or later if not already.  Would love to hear if anyone has any luck one
24way or another.
25
26What you will need:
27
28- Cygwin environment
29- GCC compiler and system header files
30- WinPcap 4.0 DLL
31- WinPcap 4.0 Developer Pack aka WpdPack (headers, etc)
32
33Additional requirements if building from SVN:
34- GNU build chain tools (Autoconf, Automake, Autoheader)
35- GNU Autogen  (*)
36
37* NOTE: The guile package which comes with Cygwin is broken and breaks
38Autogen, so you'll need to compile guile from scratch to fix.  Hence, I
39strongly suggest you build Tcpreplay from the tarball and not SVN.  See
40below for how to "fix" this issue if you want to compile from SVN.
41
42
43
44******************************* IMPORTANT ******************************
45Note 1:
46People have reported problems with WpdPack (the developer pack for
47Winpcap) being installed outside of the Cygwin root directory.  Hence, I
48strongly recommend you install it under the Cygwin root as /WpdPack.
49
50Note 2:
51There's a big problem with the Cygwin Guile package which breaks
52GNU Autogen which Tcpreplay depends on when building from Subversion.
53
54What this means is that to build from Subversion you must do the following:
55- Download GNU Guile from http://www.gnu.org/software/guile/guile.html
56
57- Extract the tarball and do the following:
58libtoolize --copy --force
59./configure
60make
61make install
62
63This will install guile in /usr/local.
64
65The other problem is that guile-config returns the linker flags in the wrong
66order.  To fix this, rename /usr/local/bin/guile-config to
67/usr/local/bin/guile-config.original and create a new shell script in it's
68place:
69
70---- BEGIN SHELL SCRIPT ----
71#!/bin/bash
72# Replacement /usr/local/bin/guile-config script
73if test -z "$1" ; then
74       guile-config.original
75elif test "$1" == "link"; then
76       echo "-L/usr/local/lib -lguile -lltdl -lgmp -lcrypt -lm -lltdl"
77else
78       guile-config.original $1
79fi
80---- END SHELL SCRIPT ----
81
82******************************* IMPORTANT ******************************
83
84Directions:
85- Install all the requirements
86
87- Enter into the Cygwin environment by clicking on the Cygwin icon
88
89- If you checked out the code from SVN, see Note 2 above and then run
90  the autogen.sh bootstrapper:
91        ./autogen.sh
92
93- Configure tcpreplay:
94        ./configure --enable-debug
95
96- Build tcpreplay:     
97        make
98       
99- Install:
100        make install
101       
102- Try it out!
103
104
105
106
Note: See TracBrowser for help on using the repository browser.