2015-08-09 23:58:03 +02:00
|
|
|
# Setup
|
2014-07-14 11:01:34 +00:00
|
|
|
|
2014-07-16 09:34:04 +00:00
|
|
|
## Compilation
|
|
|
|
|
2014-08-31 17:42:15 +00:00
|
|
|
### Prerequisites
|
|
|
|
|
2014-07-16 09:34:04 +00:00
|
|
|
Install libraries including developement headers for:
|
|
|
|
|
2015-08-09 23:58:03 +02:00
|
|
|
- [libconfig](http://www.hyperrealm.com/libconfig/) for parsing the config file
|
|
|
|
- [libnl3](http://www.infradead.org/~tgr/libnl/) for the network emulation support
|
|
|
|
|
|
|
|
Use the following command to install the dependencies under Debian-based distributions:
|
|
|
|
|
|
|
|
$ sudo apt-get install iproute2 libconfig-dev linbl-3-dev
|
2014-08-31 17:42:15 +00:00
|
|
|
|
2015-08-09 23:58:03 +02:00
|
|
|
or the following line for Fedora / CentOS / Redhat systems:
|
2014-08-31 17:42:15 +00:00
|
|
|
|
2015-08-09 23:58:03 +02:00
|
|
|
$ sudo yum install iproute2 libconfig-devel libnl3-devel
|
2014-08-31 17:42:15 +00:00
|
|
|
|
|
|
|
**Important:** Please note that the server requires the
|
|
|
|
[iproute2](http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2)
|
|
|
|
tools to setup the network emulation and interfaces.
|
|
|
|
|
|
|
|
### Compilation
|
|
|
|
|
|
|
|
Checkout the `Makefile` and `include/config.h` for some config options which have to be specified by compile time.
|
2014-07-16 09:34:04 +00:00
|
|
|
|
2014-08-31 17:42:15 +00:00
|
|
|
Afterwards, start the compilation with:
|
2014-07-16 09:34:04 +00:00
|
|
|
|
|
|
|
$ make
|
|
|
|
|
|
|
|
Add `V=5` for a more verbose debugging output.
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
Install the server by executing:
|
|
|
|
|
|
|
|
$ sudo make install
|
|
|
|
|
|
|
|
Add `PREFIX=/usr/local/` to specify a non-standard installation destination.
|
|
|
|
|