forked from tarantool/tarantool
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.FreeBSD
More file actions
50 lines (35 loc) · 1.4 KB
/
README.FreeBSD
File metadata and controls
50 lines (35 loc) · 1.4 KB
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
Target OS: FreeBSD 8.3 (RELEASE)
1. Install necessary packages:
-------------
pkg_add -r sudo git cmake gmake libbfd
pkg_add -r python27
2. Install gcc 4.6.x and gcc infrastructure pre-requisites
-------------
(x) From one of the gcc mirrors download from /gcc/infrastructure: gmp, mpfr and mpc packages;
(x) Configure and build the pre-requisites using --prefix=/usr/local and --with-gmp=/usr/local (see gcc.gnu.org/install);
(x) Configure gcc as:
configure --prefix=/usr/local --enable-languages=c,c++,objc --program-suffix=463 --enable-shared --enable-threads=posix --with-mpc=/usr/local
(x) Build gcc as per steps outlined in GCC documentation gcc.gnu.org/install;
(x) Set up the environment to include the new GCC's libs: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
3. Install necessary python modules:
-------------
cd /usr/ports/misc/py-pexpect
sudo make install
cd /usr/ports/devel/py-yaml
sudo make install
cd /usr/ports/devel/py-daemon
sudo make install
4. Download & build tarantool source code:
-------------
git clone git://github.com/mailru/tarantool.git
cd tarantool
CC=gcc463 CXX=g++463 cmake . -DCMAKE_BUILD_TYPE=RelWithDebugInfo -DENABLE_CLIENT=true
gmake
5. Set up python 2.6 to run tarantool tests
-------------
mkdir ~/build/bin && ln -s /usr/bin/python26 ~/build/bin/python
6. Run tarantool test suite
-------------
cd ~/build/tarantool/test
PATH=~/build/bin:$PATH ./run
-- EOF