Skip to content
Snippets Groups Projects
README.MacOSX 1.7 KiB
Newer Older
Roman Tsisyk's avatar
Roman Tsisyk committed
OS X Readme
===========

This manual explains how to manually build tarantool from sources.
If you just need a working binary, please use homebrew:

        brew install http://tarantool.org/dist/tarantool.rb

Target OS: MacOS X "Lion"

First of all, make sure mac ports are available (to install packages from).

1. Install necessary packages (ports):
-------------

port install autoconf binutils cmake ncurses zlib readline

Roman Tsisyk's avatar
Roman Tsisyk committed
2. Upgrade clang to 3.2+

Go to http://developer.apple.com/ to download and install the latest version
of "Command Line Tools for Xcode". This package contains /usr/bin/clang and
/usr/bin/clang++ binaries. Check that clang version is at least 3.2.

3. Install necessary python modules: pyYAML, daemon
-------------
NB: it is recommended to install python modules through setup.py,
using the default python (which should be >= 2.6.x and < 3.x);

tar -xzf module.tar.gz
cd module-dir
sudo python setup.py install

Roman Tsisyk's avatar
Roman Tsisyk committed
where module is the name of the installed module and module-dir is the name of
the directory the module's archive deflates into.
Roman Tsisyk's avatar
Roman Tsisyk committed
4. Download & build tarantool source code:
git clone --recursive git://github.com/tarantool/tarantool.git
Roman Tsisyk's avatar
Roman Tsisyk committed
CC=clang CXX=clang++ cmake . -DCMAKE_BUILD_TYPE=RelWithDebugInfo -DENABLE_CLIENT=true
Roman Tsisyk's avatar
Roman Tsisyk committed
5. Run tarantool test suite
NB: the following tests are not runnable on MacOS X at this point:
To disable those add each of them to the 'disabled' clause in suite.ini file
in the appropriate directory; for instance, tarantool/test/box/suite.ini must
be edited to disable any test in the 'box' suite;

To run all tests then, execute: