forked from FellowTraveler/Open-Transactions-old
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL-DebianStable.txt
102 lines (63 loc) · 2.36 KB
/
INSTALL-DebianStable.txt
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
94
95
96
97
98
99
100
---- Compiling and Installing OT Server on Debian Stable (+ Unstable) ----
This install process enables OT to be compiled without installing any 3rd party libraries.
Open Transactions makes use of many new versions, so we will be installing a mix of the sid unstable packages.
---- Create backports and sid apt lists: ----
# mkdir -p /etc/apt/sources.list.d
# echo "deb http://ftp.pl.debian.org/debian sid main" > /etc/apt/sources.list.d/sid.list
# echo "deb http://backports.debian.org/debian-backports squeeze-backports main" > /etc/apt/sources.list.d/backports.list
---- Configure updates for only installed packages: ----
append/add to /etc/apt/preferences
Package: *
Pin: release n=squeeze-backports
Pin-Priority: 300
Package: *
Pin: release n=sid
Pin-Priority: 200
---- update the changes: ----
# aptitude update
---- safe upgrade ----
# aptitude safe-upgrade
---- install base development system ----
# aptitude install build-essential git
---- install openjdk: ----
# aptitude install openjdk-6-jdk openjdk-6-source
---- install msgpack ----
# aptitude install libmsgpack-dev
---- install ZeroMQ ----
# aptitude install libzmq-dev
---- install Google Protcol Buffers (must install unstable version from sid) ----
# aptitude -t sid install libprotobuf-dev
---- upgrade openssl to debian unstable ----
# aptitude -t sid install libssl-dev
---- install php5 ----
# aptitude install php5-dev
---- install python2.5 ----
# aptitude install python2.5-dev
---- install ruby1.8 ----
# aptitude install ruby1.8-dev
---------------------------------------------------------------
INSTALL: Chaiscript (scripting library)
Available here:
http://www.chaiscript.com/
---------------------------------------------------------------
Now you have all the dependencies for compiling and installing OT.
Change to a user to compile OT:
# exit
$ mkdir dev && cd dev
$ git clone git://github.com/da2ce7/Open-Transactions.git
$ make clean
$ make
Install the configuration files to the local user directory:
$ make local
Change to a super user to install the binaries:
# make install
---- Making OT for Java (Money Changer) ----
Before compiling make sure you run the following commands:
$ export JAVA_HOME=/usr/lib/jvm/java-6-openjdk
$ export LD_LIBRARY_PATH=/usr/local/lib
$ make clean
$ make java
# make install_lib
---- Making OT for PHP5 (MyOT) ----
$ make clean
$ make php5