Sophie

Sophie

distrib > Mandriva > 9.2 > i586 > by-pkgid > cb5625aca3e4def202f3617de4d26932 > files > 23

c2hs-0.9.9-2mdk.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
 <TITLE>The Binding Generator C->Haskell: Installation</TITLE>
 <LINK HREF="c2hs-2.html" REL=next>

 <LINK HREF="c2hs.html#toc1" REL=contents>
</HEAD>
<BODY>
<A HREF="c2hs-2.html">Next</A>
Previous
<A HREF="c2hs.html#toc1">Contents</A>
<HR>
<H2><A NAME="s1">1. Installation</A></H2>

<P>It follows a brief discussion of the installation from source.  There is,
however, a file <CODE>INSTALL</CODE> in the source distribution, which is more
frequently updated and should be consulted in any case.
<P>
<H2><A NAME="ss1.1">1.1 Where is the Source?</A>
</H2>

<P>The master site of C-&gt;Haskell is at 
<A HREF="http://www.cse.unsw.edu.au/~chak/haskell/c2hs/">http://www.cse.unsw.edu.au/~chak/haskell/c2hs/</A>.  It has all the
latest information and sources.  Furthermore, it explains how to get anonymous 
CVS access to C-&gt;Haskell's repository and may have pre-compiled binaries
for easier installation.
<P>
<H2><A NAME="ss1.2">1.2 What Else Do I Need?</A>
</H2>

<P>You need a Haskell system supported by C-&gt;Haskell.  Currently this is only
the <EM>Glasgow Haskell Compiler (GHC)</EM>, which you can obtain from 
<A HREF="http://haskell.org/ghc/">http://haskell.org/ghc/</A>.  You need a fairly recent version of the
Haskell compiler.  C-&gt;Haskell uses a compiler support library called the
<EM>Compiler Toolkit</EM>.  In the main distribution, the Compiler Toolkit is
already contained in the source tar ball -- be sure to download a file named
<CODE>c2hs-</CODE><EM>x</EM><CODE>.</CODE><EM>y</EM><CODE>.</CODE><EM>z</EM><CODE>.tar.gz</CODE>, were
<EM>x</EM><CODE>.</CODE><EM>y</EM><CODE>.</CODE><EM>z</EM> is the version number of the package.
<P>To build the documentation, you will also need the <EM>SGML Tools</EM>, which you
find at your nearest sunsite or Linux mirror or at 
<A HREF="ftp://ftp.lip6.fr/pub/sgml-tools/">ftp://ftp.lip6.fr/pub/sgml-tools/</A>.  On an up-to-date Linux system, the
tools are probably already installed.
<P>
<H2><A NAME="ss1.3">1.3 I Got Everything, and Now?</A>
</H2>

<P>The short answer is
<BLOCKQUOTE><CODE>
<PRE>
% gzip -cd c2hs.X.Y.Z.tar.gz | tar xvf -  # unpack the sources
% cd c2hs.X.Y.Z                           # change to the toplevel directory
% ./configure                             # run the `configure' script
% make                                    # build everything
[ Become root if necessary ]
% make install                            # install the tool
</PRE>
</CODE></BLOCKQUOTE>
<P>In the <CODE>INSTALL</CODE> file, there are more details.
<P>Optionally, you can build the documentation by issuing <CODE>make doc</CODE>.
<P>
<P>
<HR>
<A HREF="c2hs-2.html">Next</A>
Previous
<A HREF="c2hs.html#toc1">Contents</A>
</BODY>
</HTML>