[Kaya] Building on Intel Mac

Edwin Brady eb at cs.st-andrews.ac.uk
Fri Jun 1 17:55:27 BST 2007


Hi all,
I've just got a shiny new MacBook, on which I have just successfully built
and tested kaya. Since people have had trouble building on these before, I
thought I'd let you know how I did it. The process goes more or less like
this:

1. Install MacPorts (and its dependencies, especially X11 and Xcode)
2. Run 'sudo port selfupdate' (this is very important, or macports won't work)
3. Install the ports you need. These are:
    sudo port install ghc
    sudo port install happy
    sudo port install darcs
    sudo port install pcre
    sudo port install gnutls
    sudo port install boehm-gc
    
These and their dependencies are all you need (if I've forgotten one, it
should be obvious what you need to do, but I don't think I have!)

4. Set your path and library path. I have added this to my .bashrc:

export PATH=/opt/local/bin:/opt/local/sbin:/sw/bin:/usr/local/bin:$PATH
export LIBRARY_PATH=/opt/local/lib:$LIBRARY_PATH
export CPATH=/opt/local/include:$CPATH

(The /sw/bin is for fink installed things, of which I have a couple.
/opt/local/... is for macports installed things. They seem to get on okay
together.)

5. Get the source:
   darcs get --partial http://kayalang.org/darcs/ --repo-name=kaya

6. Build it:
   autoconf
   ./configure
   make install
   make test

That's it! It just worked for me... macports compiles everything from
source, so be warned that it does take a while. Make several cups of tea.

A binary distribution might be useful, but you'd still need to install
various libraries, whether they be through macports or fink (either should
work). 

Edwin.
-- 
Edwin Brady --- http://www.cs.st-andrews.ac.uk/~eb/



More information about the Kaya-devel mailing list