Chapter 3. Compiling and installing

Table of Contents

Unix
Windows

There are two scenarios for compillation and installation of flood.

Unix

Flood is build around apr and apr-util, so most Unix platforms will work out of the box. Currently flood is developed on Linux and Solaris, but FreeBSD is also known to work.

Before compilation we have to configure source tree for your particular platform and personal requirements. You can do that using configure script which is located in the root directory of the flood source distribution. If you have obtained flood sources from CVS, then you'll need to run buildconf first (note that this requires recent versions of autoconf and libtool installed). configure script recognizes following options:

  • --prefix=PREFIX

    Specifies target directory, which will contain all installed files. Defaults to /usr/local/flood.

  • --enable-ssl

    This switch will cause flood to be built with SSL support, which is disabled by default because of cryptography export restrictions.

  • --with-openssl=PATH

    Path to directory containing OpenSSL installation.

  • --with-capath=PREFIX

    Path to a directory with c_rehash'd CA files used by OpenSSL. Defaults to /certs.

  • --with-apr=DIR|FILE

    Prefix for installed APR, path to APR build tree, or the full path to apr-config.

  • --with-apr-util=DIR

    Prefix for installed APU, or path to APU build tree.

A typical example of relevant command line:

./configure --enable-ssl
            

When flood source tree is configured you can start compilation by typing make at command prompt:

make
            

When compilation finishes, you'll have to perform last step -- installation. This is done by typing make install at command prompt:

make install
            

Please note, that you will need write permissions for install directory. This may require you to obtain root privileges.

If you have followed those instructions carefully, but still couldn't get flood sources to compile, then please send e-mail to mailing list, with description of your problem.