<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Chapter 3. Compiling and installing</title><meta name="generator" content="DocBook XSL Stylesheets V1.75.2" /><link rel="home" href="index.html" title="Flood manual" /><link rel="up" href="index.html" title="Flood manual" /><link rel="prev" href="ch02s03.html" title="Flood binaries" /><link rel="next" href="ch03s02.html" title="Windows" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 3. Compiling and installing</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch02s03.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="ch03s02.html">Next</a></td></tr></table><hr /></div><div class="chapter" title="Chapter 3. Compiling and installing"><div class="titlepage"><div><div><h2 class="title"><a id="id282865"></a>Chapter 3. Compiling and installing</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="ch03.html#id279424">Unix</a></span></dt><dt><span class="section"><a href="ch03s02.html">Windows</a></span></dt></dl></div><p> There are two scenarios for compillation and installation of flood. </p><div class="section" title="Unix"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="id279424"></a>Unix</h2></div></div></div><p> 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. </p><p> Before compilation we have to configure source tree for your particular platform and personal requirements. You can do that using <span class="command"><strong>configure</strong></span> 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 <span class="command"><strong>buildconf</strong></span> first (note that this requires recent versions of <span class="application">autoconf</span> and <span class="application">libtool</span> installed). <span class="command"><strong>configure</strong></span> script recognizes following options: </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><code class="option">--prefix=PREFIX</code><p> Specifies target directory, which will contain all installed files. Defaults to <code class="filename"> /usr/local/flood</code>. </p></li><li class="listitem"><code class="option">--enable-ssl</code><p> This switch will cause flood to be built with SSL support, which is disabled by default because of cryptography export restrictions. </p></li><li class="listitem"><code class="option">--with-openssl=PATH</code><p> Path to directory containing OpenSSL installation. </p></li><li class="listitem"><code class="option">--with-capath=PREFIX</code><p> Path to a directory with c_rehash'd CA files used by OpenSSL. Defaults to <code class="filename">/certs</code>. </p></li><li class="listitem"><code class="option">--with-apr=DIR|FILE</code><p> Prefix for installed APR, path to APR build tree, or the full path to <span class="command"><strong>apr-config</strong></span>. </p></li><li class="listitem"><code class="option">--with-apr-util=DIR</code><p> Prefix for installed APU, or path to APU build tree. </p></li></ul></div><p> A typical example of relevant command line: </p><pre class="screen"> ./configure --enable-ssl </pre><p> When flood source tree is configured you can start compilation by typing make at command prompt: </p><pre class="screen"> make </pre><p> When compilation finishes, you'll have to perform last step -- installation. This is done by typing make install at command prompt: </p><pre class="screen"> make install </pre><p> Please note, that you will need write permissions for install directory. This may require you to obtain root privileges. </p><p> If you have followed those instructions carefully, but still couldn't get flood sources to compile, then please send e-mail to <code class="email"><<a class="email" href="mailto:test-dev@httpd.apache.org">test-dev@httpd.apache.org</a>></code> mailing list, with description of your problem. </p></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch02s03.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="ch03s02.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Flood binaries </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Windows</td></tr></table></div></body></html>