(no commit message)
[devwiki.git] / building.mdwn
1 # Building moonshot
2 First, make sure you have the following dependencies installed:
3
4 1. autoconf
5 1. automake
6 1. libtool
7 1. doxygen
8 1. [OpenSSL](http://www.openssl.org/)
9 1. [Curl](http://curl.haxx.se)
10 1. Xerces-C XML parser
11 1. [Apache Santuario](http://santuario.apache.org/)
12 1. [MIT Kerberos](http://web.mit.edu/kerberos/) at least version 1.9
13 1. log4cpp or log4shib
14 1. [libevent](http://www.monkey.org/~provos/libevent/) at least
15 version 2.0
16
17 On a Debian or Ubuntu system you can get a lot of these dependencies
18 with:
19
20     aptitude install libxml-security-c-dev libxerces-c-dev \
21       libcurl4-openssl-dev liblog4cpp5-dev autotools-dev doxygen libtool \
22       libconfuse-dev libfreeradius-dev
23
24     aptitude install -t unstable libkrb5-dev
25
26     aptitude install -t experimental libevent-dev
27
28 A sufficiently new version of libevent is in the libevent-dev package
29 in Debian experimental. The libkrb5-dev in Debian experimental is also
30 sufficiently new. [Sam Hartman](http://www.launchpad.net/~hartmans)
31 maintains sufficiently new krb5 for Ubuntu.
32 Ensure that libgss-dev is not installed as the headers are conflicting 
33 with the headers from libkrb5-dev.
34
35 Follow the
36 [Repository](http://www.project-moonshot.org/developers/repository)
37 instructions for checking out a copy of Moonshot At this writing, the
38 following should be sufficient: 
39
40     git clone http://www.project-moonshot.org/git/moonshot.git
41     cd moonshot
42     git submodule init
43     git submodule update
44
45
46
47 Create some directory that you have permission to write to. We'll
48 assume this is /usr/local/moonshot. Run
49
50     ./builder --prefix=/usr/local/moonshot
51
52 The builder script  takes other options to permit modifying what is
53 passed to configure. The script will build and install the Moonshot
54 projects. Now [[Prepare]] to use the software.
55
56 [[Building client software for Mac OS]]