diff options
author | Brad Anderson <brad@cloudant.com> | 2010-08-18 16:48:50 -0400 |
---|---|---|
committer | Adam Kocoloski <adam@cloudant.com> | 2010-08-18 17:19:38 -0400 |
commit | bb9e2cef0c8f681dc38e09ee4e427649d89d1b44 (patch) | |
tree | 32230aa62f2b3941f03e9ff91727efe8a430ecac /INSTALL.md | |
parent | 6d18638d747374cb0e90e9bcbefbc71d959254fd (diff) |
lay down cloudant build system.
Diffstat (limited to 'INSTALL.md')
-rw-r--r-- | INSTALL.md | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/INSTALL.md b/INSTALL.md new file mode 100644 index 00000000..ac60f41a --- /dev/null +++ b/INSTALL.md @@ -0,0 +1,33 @@ +1. Getting Started + +Cloudant-core uses a rebar-based build system. Custom build paths and the like +are available using templates. If you want to customize those templates, run +the `bootstrap` command to install the defaults into ~/.rebar and go from there. +This step is optional. + +2. Dependencies + + * Erlang R13B03 or higher + * ICU (4.2 is preferable) + * Spidermonkey (1.9.2 preferable, [https://launchpad.net/~commonjs/+archive/ppa/][6]) and symlink /usr/lib/libmozjs-1.9.2.so to /usr/lib/libmozjs.so to make things easier + * OpenSSL + * make + +On OS X the Erlang and ICU dependencies are easily satisfied by Homebrew: + + brew install erlang icu4c + brew ln icu4c + +Once the dependencies are installed you can use `make` to build the code, +`make check` to run unit tests, and `make clean` to reset. + +3. Release Generation + +The `make dist` command will build a standard release in `rel/dbcore`. The +release includes a start script at `rel/dbcore/bin/dbcore` + +4. Caveats + +The build system really really wants the couch .ini files to be in +`/opt/dbcore/etc`, and the data files to be in `/srv`. It wouldn't be too +difficult to template this. But for now, the recommended installation is to move the rel/dbcore folder to /opt/ |