-
Notifications
You must be signed in to change notification settings - Fork 98
/
INSTALL-openSUSE.txt
122 lines (85 loc) · 3.15 KB
/
INSTALL-openSUSE.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
#########################################################################
# #
# #
# ## INSTALL - openSUSE ## #
# #
# #
#########################################################################
This instructions have only been tested with openSUSE 12.3 and 13.1,
but should work with all recent openSUSE versions.
################# Dependencies #################
# install general developer tools
$ sudo zypper install --type pattern devel_basis
# install general developer dependencies
$ sudo zypper in cmake zlib-devel googletest-devel
# install Open-Transactions library dependencies
$ sudo zypper in openssl libopenssl1_0_0 libopenssl-devel libprotobuf7 libprotobuf-lite7 protobuf-devel zeromq-devel
######### Optional API dependencies ##########
SWIG Version 3.0.0 or newer required.
$ sudo zypper in ...
SWIG JAVA: java-1_7_0-openjdk java-1_7_0-openjdk-devel
SWIG PERL5: (tba)
SWIG PHP: php5 php5-devel
SWIG PYTHON: python-devel
SWIG RUBY: ruby ruby-devel ruby-devel-extra
SWIG TCL: tcl tcl-devel
SWIG CSHARP: mono-complete mono-devel
SWIG D:
# find .rpm for "gdc" d-compiler front end for gcc
# or build-install "gdc" from source
################# Get opentxs ##################
# git pull from master branch (current stable)
$ git clone git://github.com/Open-Transactions/opentxs.git
# to clean and reset to HEAD:
$ git clean -fxd && git submodule foreach git clean -fxd
$ git reset --hard HEAD && git submodule foreach git reset --hard HEAD
$ cd opentxs
$ mkdir build && cd build
################## Build ###################
$ cmake ..
$ make -j2
Build Multithreaded, need about 1gb of ram per thread.
-j (int)
############## CMake Options: ##############
Set install dir: -DCMAKE_INSTALL_PREFIX=/home/your/prefix/
(Default is /usr/local)
Build static: -DBUILD_SHARED_LIBS=OFF
Debug Mode: -DCMAKE_BUILD_TYPE=Debug
(Default is Release)
Signal Handling: -DSIGNAL_HANLDER=ON
System Keyring (Optional):
Windows : -DKEYRING_WINDOWS=ON
Mac : -DKEYRING_MAC=ON
Gnome : -DKEYRING_GNOME=ON
KDE KWallet : -DKEYRING_KWALLET=ON
Flatfile : -DKEYRING_FLATFILE=ON
opentxs CL client autocompletion: -DAUTOCOMPLETION=ON
Enable OTAPI support for swig wrapper:
Java : -DJAVA=ON
Perl : -DPERL=ON
PHP : -DPHP=ON
Python : -DPYTHON=ON
Ruby : -DRUBY=ON
TCL : -DTCL=ON
C# : -DCSHARP=ON
D : -DD=ON
Go : -DGO=ON
Build Packages:
RPM: -DRPM=ON
DEB: -DDEB=ON
You can't build an RPM and use an install to a custom directory (CMAKE_INSTALL_PREFIX).
################## Install #################
## Install to system
$ sudo make install
## Link the libraries
$ sudo ldconfig
## Build (RPM/DEB/TAR) package
$ make package
########### Miscellaneous Notes: ###########
## Load some sample data to look at an example wallet
!!! WARNING : will reset all user data !!!
$ ./script/install_sample_data.sh
# also can checkout sample contracts,baskets,
# server-contracts at https://github.com/monetas/opentxs-sample-data
# for python client api support export env variable
$ export PYTHONPATH=/usr/local/lib:$PYTHONPATH