Linux Installation - SapphireServer/Sapphire GitHub Wiki
Installing Sapphire on Linux
This document expects you to have a development environment for Linux setup.
Setup
You will need to install build and runtime dependencies before compiling, please see below for your specific distribution.
CentOS/RHEL/Fedora
If you don't already have a development environment setup, run the following:
yum groupinstall -y development
Install development headers and tools:
yum install -y cmake git libmariadb-devel zlib-devel
After installing all dependencies, you can proceed to download, build, and configure.
Care must be taken when considering versioning for libraries, especially in rolling release distros such as Arch Linux, in which you must take extra steps to make sure you're targeting the correct version.
Debian/Ubuntu
If you don't already have a development environment setup, run the following:
apt install -y build-essential
Install development headers and tools:
apt install cmake git libmariadb-dev zlib1g-dev
After installing all dependencies, you can proceed to download, build, and configure.
Archlinux
If you don't already have a development environment setup, run the following:
pacman -Sy --needed base-devel
Install development headers and tools:
pacman -Sy cmake git libmariadbclient
After installing all dependencies, you can proceed to download, build, and configure.
Download
git clone --recursive https://github.com/SapphireServer/Sapphire.git sapphire
#required for current client version. Otherwise checkout the appropriate version for your client
git checkout develop
Build
mkdir build && cd build
cmake ..
make -j 4
Configure
The build will output the binaries into bin/
in the folder you invoke cmake from, along with a nested subdirectory for config files. You will need the game data files plus a running MySQL DB to point the binaries at. You can then run the servers as normal processes.