###Linux:
-
Bootstrap your python environment and install system packages:
openssl-devel or libssl-dev mongodb
-
Install Themis:
git clone https://github.com/cossacklabs/themis.git cd themis sudo make install
-
Install Python packages:
pythemis
,pymongo
,event
,enum
. -
After installing everything, go to
serv.py
and:- Comment line 'from themis import ...', as it's intended for mac users
- Uncomment line with 'from pythemis import ...', it will use system-installed PyThemis.
###Mac OS X:
Since installing PyThemis on Mac OS X is a process with more moving parts, we've outlined it for iOS developers wanting to launch the server to test XCode project in greater depth:
-
We use homebrew for packages. If you'd like macports, refer to your macports documentation for syntax.
-
We assume you have python installed since you're on legitimate mac.
-
Install mongodb, if you don't have one
brew install mongodb
-
Have libressl / openssl + libssl-dev installed via
brew install openssl
-
Make with custom paths to force it look at the odd paths where brew installs openssl:
make CRYPTO_ENGINE_INCLUDE_PATH=/usr/local/opt/openssl/include CRYPTO_ENGINE_LIB_PATH=/usr/local/opt/openssl/lib install
-
Install server dependencies:
pip install pythemis pip install gevent pip install pymongo pip install enum # mac pythemis doesn't seem to force install it's dependencies yet
-
Launch mongodb
mongod --config /usr/local/etc/mongod.conf
-
Export DYLD path to libthemis.dyld (might be unnecessary in next release, left to be sure)
set DYLD_FALLBACK_LIBRARY_PATH=/usr/lib/
-
Launch the server with -m
python serv.py -m password123
-
Use iOS application to talk to server smth to server, see history log on
http://127.0.0.1:8828/stat