<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><title>Gale Installing</title><link href="../style.css"
rel="stylesheet" type="text/css"></head><body><div><span
class="header">gale.org</span><br><span class="navigation"><a
href="../index.xml">Home</a> &gt; <a
href="../docs.xml">Documentation</a> &gt; <a
href="index.xml">for Administrators</a> &gt; <b>Installing</b> &gt; <a
href="../download.xml">Download</a>^</span><br></div><hr><h1><a name="Gale Installation Instructions"></a>Gale Installation Instructions</h1><p>For the most part, installing Gale is a matter of building the binaries 
  and getting them in the right places.  The exception is the authentication 
  system, which requires a certain amount of finicky setup -- including setuid 

  binaries -- to do its job correctly and securely.</p><p><b>First</b>, <a href="../download.xml">download the Gale 
  source code</a> and unpack it.  It should create a directory named
  &quot;gale-(version)&quot;, where (version) is the version number you downloaded.
  (We'll refer to this directory as &quot;gale&quot;.)</p><hr><h1><a name="Fetching Required Libraries"></a>Fetching Required Libraries</h1><p><b>Second</b>, make sure you have some libraries Gale depends 
  on:</p><div class="subsection-title"><b><a name="RSAREF"></a><a
href="http://download.gale.org/rsaref20.tar.Z">RSAREF</a></b></div><div class="titled-subsection">
    <p>Get the RSAREF library.  Unpack the rsaref20.tar.Z file in the 
    &quot;gale/rsaref&quot; directory.  The configuration and build process will 
    automatically detect its presence, build it and link with it.  This will 
    only work with the &quot;genuine&quot; RSAREF.</p>

    <p>Alternatively, you can build the library (or a workalike) yourself.
    If you do, install librsaref.a and the RSAREF headers into system lib and 
    include directories; remember where you put them for the next step.</p>
  </div><div class="subsection-title"><b><a
name="The Boehm conservative garbage collector"></a><a
href="http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc.tar.gz">The Boehm conservative garbage collector</a></b></div><div class="titled-subsection">
    <p>Unpack the tarball in the &quot;gale&quot; directory; it will expand into 
    &quot;gale/gc&quot;.</p>

    <p>You may alternatively build and install it yourself elsewhere.  If 
    so, make sure you know where to find libgc.a and gc.h.</p>
  </div><div class="subsection-title"><b><a
name="Ian Jackson's asynchronous DNS library (ADNS)"></a><a
href="http://www.chiark.greenend.org.uk/~ian/adns/adns.tar.gz">Ian Jackson's asynchronous DNS library (ADNS)</a></b></div><div class="titled-subsection">
    <p>ADNS is now required for Gale.  Follow the included directions to
    configure and install this library.  Make sure you know where adns.h and 
    libadns.* are.</p>

    <p><b>** Use version 0.9 or newer! **</b>
    At the time of this writing, the only known working versions are 0.5
    and 0.9.  Versions 0.4, 0.6, 0.7 and 0.8 don't work.
    Versions after 0.9 should also work (try it and see!).</p>
  </div><div class="subsection-title"><b><a
name="Unicode conversion library (iconv)"></a><a
href="http://clisp.cons.org/~haible/packages-libiconv.html">Unicode conversion library (iconv)</a></b></div><div class="titled-subsection">
    <p>Gale requires the Unix98 standard iconv(3) functions to perform
    Unicode character set translation.  However, some operating systems do 
    not yet provide this function, or do not provide a sufficiently powerful 
    version.  To use Unicode character sets on these systems, you will need 
    to install <a href="http://clisp.cons.org/~haible/packages-libiconv.html">Bruno Haible's 
    libiconv</a>.  The GNU libc 2.1 iconv is broken, but GNU libc 2.2 
    will work.</p>

    <p>Without these functions, Gale will still work, but I/O will be 
    limited to the ASCII character set.  (This is perfectly sufficient for 
    many English-speaking users.)</p>
  </div><hr><h1><a name="Configuration"></a>Configuration</h1><p><b>Third</b>, get ready to run the provided &quot;configure&quot;
  script.  The typical &quot;configure&quot; options (--prefix etc.) apply; run 
  &quot;sh configure --help&quot; for usage information.</p><p>The gzgw (Gale/Zephyr gateway) is not built by default.  To enable it, 
  use the --enable-gzgw flag to &quot;configure&quot;.  If you do this, make sure 
  &quot;configure&quot; can find the Zephyr libraries and headers by using the proper 
  -L and -I flags (if necessary) in the LDFLAGS and CPPFLAGS environment 
  variables, respectively.</p><p>If you want to use a preinstalled RSAREF library, include the 
  appropriate flags in LDFLAGS and CPPFLAGS so &quot;configure&quot; can find librsaref.a
  and the RSAREF headers (rsaref.h etc).  (Don't worry about this if you've 
  unpacked rsaref20.tar.Z into gale/rsaref as directed in the second 
  step.)</p><p>Similarly, if you want to use a preinstalled Boehm GC library, make 
  sure LDFLAGS and CPPFLAGS include the location of libgc.a and gc.h, 
  respectively.  ADNS, libiconv, and any other required libraries must also 
  be available via these paths.</p><p>By default and where supported, Gale will install static and shared 
  libraries, and install binaries linked against shared libraries.  You may 
  use --disable-shared or --disable-static to modify this behavior.</p><p>Once you've figured out the right options and set the right environment 
  variables, <b>run the script</b>.</p><hr><h1><a name="Compiling"></a>Compiling</h1><p><b>Fourth, run &quot;make&quot;</b> in the top-level Gale directory.  
  With luck, this will build everything without incident.  If not, now you 
  get to figure out what went wrong and why; enjoy!  Feel free to 
  <a href="mailto:egnor-gale.org@ofb.net">contact me</a> with 
  questions and patches.  Many architectures are currently unsupported, but 
  the changes are typically not too painful.</p><p>Then become a user (eg. &quot;root&quot;) which has permission to write 
  (and create, if necessary) the install directories (/usr/local/..., unless 
  you specified otherwise).  <b>Run &quot;make install&quot;</b> from the 
  top-level &quot;gale&quot; directory; this should install the Gale binaries, libraries,
  and header files.</p><p>Make sure the installed binaries are on the PATH for future 
  steps!</p><hr><h1><a name="Final Setup"></a>Final Setup</h1><p><b>Fifth, run the &quot;gale-install&quot; script</b> that was installed 
  by &quot;make install&quot;.  This may ask questions if it can't find a previous 
  configuration.  Feel free to interrupt and re-start it at any point.</p><p>Finally, if you have not already set up your domain, you need to do so.
  Become the &quot;gale user&quot; selected in the last step and run &quot;gale-install&quot; 
  again.  Follow the directions; these will involve sending your key to the 
  proper authority to get it signed.  I manage ROOT and most &quot;top-level&quot; 
  domains (.edu, .com, .org, .nu, .ml.org, etc.) for now.  
  <a href="mailto:egnor-gale.org@ofb.net">When in doubt, ask 
  me</a>.</p><hr><h1><a name="Happy Puffing!"></a>Happy Puffing!</h1><p>Enjoy your new installation; you may find the
<a href="../users">user documentation</a> useful.  
If you have any problems, feel free to
<a href="mailto:egnor-gale.org@ofb.net">send me e-mail</a>.</p><hr></body></html>

<!-- This page was served in 191 milliseconds by Cocoon 1.7.4 -->
