Compiling

Here are the instructions to compile the LiteReplica library from source code.



Compiling on Linux and Mac

1. Download and compile nanomsg

wget https://github.com/nanomsg/nanomsg/archive/1.0.0.tar.gz -O nanomsg-1.0.tar.gz

tar -zxvf nanomsg-1.0.tar.gz

cd nanomsg

./configure

make

sudo make install

sudo ldconfig

cd ..


2. Download and compile binn

git clone https://github.com/liteserver/binn

cd binn

make

sudo make install

cd ..


3. Compile LiteReplica

cd litereplica

tar zxvf litereplica-(version)-sources-(platform).tar.gz

make

sudo make install

cd ..




Compiling on Windows with MinGW

1. Download and compile nanomsg

wget https://github.com/nanomsg/nanomsg/archive/1.0.0.tar.gz -O nanomsg-1.0.tar.gz

tar -zxvf nanomsg-1.0.tar.gz

cd nanomsg-

./configure

make

cd ..


2. Download and compile binn

git clone https://github.com/liteserver/binn

cd binn

make

cd ..


3. Compile LiteReplica

cd litereplica

tar zxvf litereplica-(version)-sources-(platform).tar.gz

make

cd ..




Compiling on Windows with Visual Studio

First download and compile nanomsg and Binn

Then open the Visual Studio solution file available in the zip file, select Release and Build.