Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
160 lines (108 sloc) 4.8 KB
######################################################################
# #
# #
# ## 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
################################################
Something went wrong with that request. Please try again.