Skip to content
This repository was archived by the owner on Apr 9, 2022. It is now read-only.

Linux Build Quickstart

David Reed edited this page Feb 27, 2022 · 3 revisions

This is a guide to quickly setup the C++ Bare Server on Linux.

Requisites

Install required packages

These steps assume you have APT installed.

  • OpenSSL
sudo apt install libssl-dev
  • Boost (>= 1.72)
wget https://downloads.sourceforge.net/project/boost/boost/1.78.0/boost_1_78_0.tar.gz
tar -zxvf boost_1_78_0.tar.gz
cd boost_1_78_0/
cpuCores=`cat /proc/cpuinfo | grep "cpu cores" | uniq | awk '{print $NF}'`
./bootstrap.sh 
sudo ./b2 --with=all -j $cpuCores install
  • RapidJSON
sudo apt install rapidjson-dev

Building

  1. Clone this repository locally.
git clone https://github.com/tomphttp/bare-server-cpp.git
cd bare-server-cpp
  1. Initialize the submodules
git submodule init
git submodule update
  1. Enter a build directory
mkdir ./build
cd ./build
  1. Configure
cmake ../
  1. Run the makefile
make
Clone this wiki locally