Please see also README.md, these are only OS X specific instructions. Especially note the remarks on running the server.
For compiling pEp Engine Server Adapter and its dependencies, make sure you have the LANG variable set.
```
export LANG=en_US.UTF-8
```
## Dependencies
### MacPorts
[Install MacPorts](https://www.macports.org/install.php) for your version of OS X/macOS.
If MacPorts is already installed on your machine, but was installed by a different user, make sure your `PATH` variable is set as follows in `~/.profile`:
The p≡p JSON Server Adapter provides a REST-like jQuery-compatible API to
connect with the p≡p engine. It is language-independent and can be used by
any client.
## Getting started - build and run
## Requirements
In order to use the p≡p JSON Server Adapter, you need to build and run it.
Currently, Linux and OSX/macOS are supported, Windows is about to follow.
### Building on Linux
The p≡p JSON Server Adapter can be build on Debian and Ubuntu. Other
distributions should work, but are not yet officially supported.
#### System requirements
Currently, Linux (Debian 9, Ubuntu 16.04) and MacOS (10.11, 10.12) are supported, Windows is about to follow. Newer versions should also work (file a bug report if not) but are not in our main focus, yet.
Debian 9 or Ubuntu 16.04. Newer versions should also work (file a bug report
if not) but are not in our main focus, yet.
#### Dependencies
## Dependencies
* C++ compiler: tested with g++ 4.8 and 4.9, and clang++ 2.8. Newer versions should work, too.
* GNU make
* libboost-thread-dev (tested with 1.58)
@ -30,87 +18,114 @@ if not) but are not in our main focus, yet.
* libevent-dev 2.0.21 or 2.0.22 (or build from source, see below)
Use homebrew or macports to install the required libraries.
For more explicit instructions on how to do this with macports, see the section below.
Build and install the pEp Engine. Instructions can be found here: [https://cacert.pep.foundation/dev/repos/pEpEngine/file/ef23982e4744/README.md](https://cacert.pep.foundation/dev/repos/pEpEngine/file/ef23982e4744/README.md).
The p≡p JSON Server Adapter can be built on OS X 10.11 or macOS 10.12 with MacPorts.
Edit the build configuration to your needs in `./Makefile.conf`, or create a `./local.conf` that sets any of the make variables documented in `./Makefile.conf`.
#### System requirements
If a dependency is not found in your system's default include or library paths, you will have to specify the according paths in a make variable. Typically, this has to be done at least for the pEp Engine, libetpan and libevent.
* OS X 10.11 or macOS 10.12.
Below are two sample `./local.conf` files, for orientation.
#### Preconditions
macOS 10.12:
For compiling the p≡p JSON Server Adapter and its dependencies, make sure