\chapter{Installation}\label{installation}\index{Installation}%
\setheader{{\it CHAPTER \thechapter}}{}{}{\ctsimheadtitle}{}{{\it CHAPTER \thechapter}}%
\ctsimfooter%

\section{Download}\label{download}\index{Download}%

The latest version of \ctsim, both executable programs and source code,
 can be downloaded from the official
 \ctsim\ \urlref{web site}{http://www.ctsim.org}. Additionally, these
 files are also available from the \urlref{FTP site}{ftp://ftp.ctsim.org}.


\section{Installing Windows Binary}

Download the Windows executable file.
Simply execute this program to unpack \ctsim\ and begin the
installation program. \ctsim\ will then be accessible from the
\texttt{Start} Menu under the \texttt{Programs} submenu.

\ctsim\ is compatible with Windows 98, Windows Me, Windows NT 4.0,
and Windows 2000. Due to use of the OpenGL and htmlhelp libraries,
\ctsim\ is not compatible with the stock Windows 95 system.

\section{Installing Linux RPM}
Download the RPM file, then use
the \texttt{rpm} manager program:\\
\hspace{1cm}\texttt{rpm -Uvh} \emph{ctsim-*.rpm}\\

\ctsim\ and \ctsimtext\ will then be installed in the \texttt{/usr/local/bin}
directory. The online help file, \texttt{ctsim.hhp}, will be installed in
directory \texttt{/usr/local/man}.

\section{Build From Sources}\label{build}\index{Build}

Refer to the INSTALL file included in the source distribution for
instructions.

\subsection{Optional Libraries}%
  \begin{itemize}
  \item \textbf{wxWindows}\\
  Used for platform-independent graphical interface. The graphical version
  of \ctsim\ requires this library.\\
  \urlref{Web site}{http://www.wxwindows.org}

  \item \textbf{FFTW}\\
    Used for fast frequency-based filtering and fourier transformations of images.
    Without this library \ctsim\ will use slower, traditional Fourier transformations.\\
    \urlref{Web site}{http://www.fftw.org}

  \item \textbf{libpng}\\
        Used for PNG file export.\\
    \urlref{Web site}{http://www.libpng.org/pub/png/libpng.html}

  \item \textbf{zlib}\\
        Used for PNG file export.\\
    \urlref{Web site}{http://www.info-zip.org/pub/infozip/zlib/zlib_docs.html}

  \item \textbf{readline}\\
    Used for \ctsimtext\ interactive shell.\\
    \urlref{Web site}{http://www.gnu.org}

  \item \textbf{dmalloc}\\
    Used for debugging memory allocation\\
    \urlref{Web site}{http://www.dmalloc.com}

\end{itemize}
