| 1 |
========================================== |
| 2 |
D-ITG Building and Installation Guidelines |
| 3 |
------------------------------------------ |
| 4 |
Version: 2.8.1 - Revision:1023 |
| 5 |
========================================== |
| 6 |
|
| 7 |
Outline |
| 8 |
------- |
| 9 |
|
| 10 |
1. Requirements |
| 11 |
2. Building D-ITG from sources |
| 12 |
3. OS-Specific notes |
| 13 |
|
| 14 |
|
| 15 |
Requirements |
| 16 |
============ |
| 17 |
|
| 18 |
D-ITG currently supports the following operating systems: |
| 19 |
- Linux (Ubuntu, Debian, Fedora, CentOS, OpenWRT) |
| 20 |
- Windows (XP, Vista, 7) |
| 21 |
- OSX (Leopard) |
| 22 |
- FreeBSD |
| 23 |
|
| 24 |
To compile D-ITG you just need GNU Make and gcc. Depending on the operating system, |
| 25 |
some limitations or additional requirements may apply (see Building D-ITG section). |
| 26 |
|
| 27 |
|
| 28 |
Building D-ITG from sources |
| 29 |
=========================== |
| 30 |
|
| 31 |
Independently on the operating system, these are the high-level steps to follow: |
| 32 |
|
| 33 |
1. download and unpack the "D-ITG-2.8.1-r1023-src.zip" package somewhere |
| 34 |
on your filesystem |
| 35 |
|
| 36 |
2. from the command line, enter the "D-ITG-2.8.1-r1023/src" directory |
| 37 |
|
| 38 |
3. type "make" to build the binaries |
| 39 |
|
| 40 |
Once done, the binaries will be copied into the "D-ITG-2.8.1-r1023/bin" directory. |
| 41 |
|
| 42 |
D-ITG also offers some compile-time options. To show the options available for the |
| 43 |
current operating system enter the "D-ITG-2.8.1-r1023/src" and run |
| 44 |
|
| 45 |
$ make help |
| 46 |
|
| 47 |
Keep in mind that not all the options are available on all operating systems and |
| 48 |
the previous command will only show the options available for the current target. |
| 49 |
|
| 50 |
For instance, to enable DEBUG mode using a specific verbosity level the "debug=<level>" |
| 51 |
option can be specified on the make command line: |
| 52 |
|
| 53 |
$ make clean all debug=<level> |
| 54 |
|
| 55 |
where <level> is a positive integer value (bigger value -> more verbose). |
| 56 |
Setting debug=0 enables debugging symbols without increasing the verbosity. |
| 57 |
|
| 58 |
Please refer to the manual for more information about compile-time options. |
| 59 |
|
| 60 |
|
| 61 |
OS-Specific notes |
| 62 |
================= |
| 63 |
|
| 64 |
We report in the following some guidelines specific for each supported operating system. |
| 65 |
|
| 66 |
|
| 67 |
All Unix-like OSes (Linux, FreeBSD, OSX) |
| 68 |
---------------------------------------- |
| 69 |
|
| 70 |
- The binaries can be installed using the root account: |
| 71 |
|
| 72 |
# make install PREFIX=/usr/local |
| 73 |
|
| 74 |
or as normal user using the sudo utility: |
| 75 |
|
| 76 |
$ sudo make install PREFIX=/usr/local |
| 77 |
|
| 78 |
The same way the binaries can be removed by the system: |
| 79 |
|
| 80 |
# make uninstall PREFIX=/usr/local |
| 81 |
|
| 82 |
or: |
| 83 |
|
| 84 |
$ sudo make uninstall PREFIX=/usr/local |
| 85 |
|
| 86 |
|
| 87 |
- The "multiport" and "bursty" options are enabled by default. They are still optional |
| 88 |
since no estensive testing has been conducted on them. Both options can be disabled |
| 89 |
at compile time respectively using "multiport=off" and "bursty=off" options. |
| 90 |
|
| 91 |
|
| 92 |
Linux |
| 93 |
----- |
| 94 |
|
| 95 |
- In order to enable the SCTP protocol (sctp=on option), libsctp should be installed first. |
| 96 |
This feature is supported starting from kernel version 2.5.15. |
| 97 |
|
| 98 |
- The DCCP protocol (dccp=on option) is supported starting from kernel version 2.6.14-rc1. |
| 99 |
|
| 100 |
- Windows binaries can be also built under Linux using Mingw: |
| 101 |
|
| 102 |
$ make T=win |
| 103 |
|
| 104 |
If MinGW is installed in a standard location (e.g. /usr/i686-w64-mingw32 on Ubuntu 12.10) |
| 105 |
it will be automatically detected, otherwise it is necessary to set the MINGW variable to |
| 106 |
point to the Mingw toolchain path: |
| 107 |
|
| 108 |
$ export MINGW=/usr/local/i686-w64-mingw32 |
| 109 |
|
| 110 |
In order to show the options available in this case do: |
| 111 |
|
| 112 |
$ make T=win help |
| 113 |
|
| 114 |
|
| 115 |
Windows |
| 116 |
------- |
| 117 |
|
| 118 |
- Since with Windows XP/2000 listening on both IPv4 and IPv6 sockets is not supported, |
| 119 |
we provide an "ipv4only=on" option to disable IPv6 support. That means that normally |
| 120 |
ITGRecv under Windows XP/2000 will only be able to accept connections using IPv6. |
| 121 |
Using more recent Windows versions using this option is not necessary and ITGRecv |
| 122 |
will be able to work with IPv4 and IPv6 simultaneously. |
| 123 |
|
| 124 |
- The compilation under Windows has been tested using Dev-Cpp 4.9.9.2, which includes |
| 125 |
the Mingw 32-bit toolchain based on GCC 3.4.2. It can be compiled both using the IDE |
| 126 |
environment and Mingw from the command-line: |
| 127 |
|
| 128 |
- Using Dev-Cpp IDE: |
| 129 |
|
| 130 |
1. Open the "src/D-ITG.dev" project |
| 131 |
|
| 132 |
2. Uncomment the first lines of the "win-mingw.mk" file to eventually set |
| 133 |
compile-time options |
| 134 |
|
| 135 |
3. Verify that the DEVDIR variable points to the right path of your Dev-Cpp |
| 136 |
installation |
| 137 |
|
| 138 |
4. Type CTRL + F11 to compile |
| 139 |
|
| 140 |
- Using Mingw from the command-line: |
| 141 |
|
| 142 |
1. Add the bin folder of Dev-Cpp to the execution path: |
| 143 |
|
| 144 |
C:\> set PATH=<Dev-Cpp_dir>\bin:%PATH% |
| 145 |
|
| 146 |
2. If you installed Dev-Cpp in the default path just do: |
| 147 |
|
| 148 |
C:\D-ITG-2.8.1-r1023\src> make |
| 149 |
|
| 150 |
otherwise you have to specify the right path setting the DEVDIR variable: |
| 151 |
|
| 152 |
C:\D-ITG-2.8.1-r1023\src> make DEVDIR=<Dev-Cpp_install_path> |
| 153 |
|
| 154 |
Also in this case compile-time options are supported. To list them do: |
| 155 |
|
| 156 |
C:\D-ITG-2.8.1-r1023\src> make help |
| 157 |
|
| 158 |
- The "multiport" option is set to "off" by default because it currently adds a delay |
| 159 |
of several seconds when starting ITGRecv.exe. |
| 160 |
|
| 161 |
|
| 162 |
FreeBSD |
| 163 |
------- |
| 164 |
|
| 165 |
- In order to build D-ITG you have to use the GNU version of make: |
| 166 |
|
| 167 |
$ gmake |
| 168 |
|
| 169 |
- IPv6, DCCP and SCTP are currently not supported under FreeBSD. |
| 170 |
|
| 171 |
|
| 172 |
OSX |
| 173 |
--- |
| 174 |
|
| 175 |
- IPv6, DCCP and SCTP are currently not supported under OSX. |
| 176 |
|
| 177 |
|
| 178 |
|