forked from Open-Transactions/Open-Transactions
-
Notifications
You must be signed in to change notification settings - Fork 48
/
INSTALL-Fedora.txt
159 lines (108 loc) · 4.8 KB
/
INSTALL-Fedora.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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
######################################################################
# #
# #
# ## INSTALL - Fedora 17+ ## #
# #
# #
######################################################################
for a guide that support fedora 16 and 15:
https://github.com/Open-Transactions/Open-Transactions/blob/6a96f043977afa1b70c90e8859dab5cb55c48d09/docs/INSTALL-Fedora.txt
######### Fedora deps: #########
# install general developer tools
$ sudo yum groupinstall "Development Tools" "Development Libraries" "C Development Tools and Libraries"
# install general developer dependencies
$ sudo yum install gcc autoconf automake libtool wget cmake zlib-devel gtest-devel
# install Open-Transactions library dependencies
$ sudo yum install zeromq-devel openssl-devel msgpack-devel protobuf-devel
######### Optional API deps: #########
$ sudo yum install ...
SWIG JAVA: java-1.6.0-openjdk java-1.6.0-openjdk-devel
SWIG PERL5: perl-devel
SWIG PHP: php-devel
SWIG PYTHON: python-devel
SWIG RUBY: ruby-devel
SWIG TCL: tcl-devel
SWIG CSHARP: monodevelop
SWIG D:
# find .rpm for "gdc" d-compiler front end for gcc
# or build-install "gdc" yourself from source
###########################################
You may be required to add /usr/local/lib to your ld directory.
http://stackoverflow.com/questions/12045563/cannot-load-shared-library-that-exists-in-usr-local-lib-fedora-x64
######## Download opentxs #############
# fetch O-T and prepare your copy for build
# 'stable' source tar ball method
$ wget -c http://sourceforge.net/projects/opentxs/files/latest/download
$ tar -zxvf opentxs-*
$ cd opentxs-*
$ ./autogen.sh
### OR ###
# git pull latest development source method
$ git clone git://github.com/Open-Transactions/Open-Transactions.git
$ cd Open-Transactions
$ ./autogen.sh
########################################
$ ./configure
######### Configure Options: #########
Debug Mode: --enable-debug
Signal Handling: --enable-sighandler
Warnings: --enable-warnings
Release Mode: --enable-release
(default)
(Optional)
System Keyring: --with-keyring=ARG
Arguments: gnome, kwallet, windows or mac
opentxs Autocompletion: --with-bashcompletion=
path depending on the system e.g. /etc/bash_completion.d/
Enable OTAPI support for swig wrapper:
Java: --with-java
Perl 5: --with-perl5
PHP: --with-php
Python: --with-python
Ruby: --with-ruby
TCL: --with-tcl
CSHARP: --with-csharp
D: --with-d
Go: --with-go
##########################################
$ sudo make uninstall (cleanup from possible previous build)
$ make
Build Multithreaded, need about 1gb of ram per thread.
-j (int)
Install to system
$ sudo make install
Link the libraries
$ sudo ldconfig
########### Miscellaneous Notes: ###########
## Load some sample data to look at an example wallet
!!! WARNING : will reset all user data !!!
$ mkdir -p ~/.ot && cp -R sample-data/ot-sample-data/* ~/.ot
# also can checkout tarball of sample contracts, baskets, server
$ cd /usr/local/share/opentxs
$ tar -xvf user-samples.tar.gz
$ ls
# to run otserver as a foreground process:
$ otserver
# to run otserver as a background process, configure it using:
$ ./configure --with-keyring=flatfile
# plus any other desired options, compile and install as usual,
$ cp dev/Open-Transactions/sample-data/ot-sample-data/background_server.cfg $HOME/.ot/server.cfg
# and change the password_folder path to a location appropriate for your system.
$ mkdir $HOME/.ot/server_data/passphrase
# Run and create otserver as usual as a foreground process and enter the passphrase when requested.
# Then press Ctrl-c to exit the server,
$ cd to $HOME/.ot/server_data and rm ot.pid
$ cd $HOME/.ot (or any other folder you want to run otserver from and store its log file in)
# The following command will run otserver as a daemon process in the background:
$ nohup otserver &
# All server output will be redirected to a 'nohup.out' file in the folder you
# launch otserver from. The pid of the daemon process will be listed after you
# press return. It is also listed in $HOME/.ot/server_data/ot.pid, in case you forget it.
# To kill the server daemon process, enter:
$ cd $HOME/.ot/server_data
$ cat ot.pid to display the process id <pid> of the daemon process that is running the server
$ kill <pid>
$ rm ot.pid
# for python client api support export env variable
$ export PYTHONPATH=/usr/local/lib:$PYTHONPATH
################################################