forked from tarantool/tarantool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.MacOSX
96 lines (64 loc) · 2.7 KB
/
README.MacOSX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
Target OS: MacOS X "High Sierra"
In the Homebrew environment, you can download the latest tarantool package
with a single command:
brew install tarantool
This downloads an already built release version of tarantool.
If you want to manually build tarantool from sources, read the following
instructions on how to do it using either the default Apple developer software
(Xcode Tools), or external package managers (Homebrew or MacPorts).
1. Install necessary packages
-------------
For the default Xcode Tools by Apple:
sudo xcode-select --install
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
For Homebrew:
brew install openssl readline curl icu4c libiconv zlib cmake python3
For MacPorts:
port install binutils cmake ncurses zlib readline openssl python37
2. Install test-required packages and modules for Python 3.x
-------------
You need: pyYAML, python-daemon, gevent, six
To install these packages, we recommend easy_install, pip, or setup.py.
For easy_install:
sudo easy_install pyyaml
sudo easy_install argparse
sudo easy_install gevent
sudo easy_install six
For pip:
sudo pip install -r test-run/requirements.txt
For setup.py:
tar -xzf module.tar.gz
cd module-dir
sudo python setup.py install
where 'module' is the name of the installed python module and 'module-dir'
is the name of the directory where the module's archive is deflated into.
3. Download & build tarantool source code
-------------
Download tarantool source code from the repository at GitHub:
git clone https://github.com/tarantool/tarantool.git --recursive
git submodule update --init
Create a build directory and build the tarantool project manually, for example:
cd tarantool
mkdir build && cd build
cmake .. \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCURL_INCLUDE_DIR=$(xcode-select --sdk macosx --show-sdk-path)/usr/include \
-DCURL_LIBRARY=/usr/lib/libcurl.dylib \
-DDARWIN_BUILD_TYPE=Ports
make
In this example, we are making a developer's build (-DCMAKE_BUILD_TYPE=RelWithDebInfo)
with cmake using MacPorts (-DDARWIN_BUILD_TYPE=Ports). To build a release version,
set -DCMAKE_BUILD_TYPE=Release.
Remember also to set up the cmake's flag -DDARWIN_BUILD_TYPE depending on the package
manager you use ('-DDARWIN_BUILD_TYPE=None' for Xcode Tools and Homebrew, and
'-DDARWIN_BUILD_TYPE=Ports' for MacPorts). It is set to None by default.
Some Homebrew formulas are "keg-only", which means that they're not
symlinked into `/usr/local`. So, if you have used Homebrew for
dependencies, you would need following flags for it to find `openssl`
and GNU `readline`:
-DOPENSSL_ROOT_DIR=$(brew --prefix openssl) -DREADLINE_ROOT=$(brew --prefix readline)
4. Run tarantool test suite
-------------
To run all tests, execute:
make test
-- EOF