MacOS Installation - SapphireServer/Sapphire GitHub Wiki
Installing Sapphire on MacOS
You will need a development environment and at least OS X El Capitan (macOS High Sierra recommended) to build Sapphire. To setup your environment, Homebrew is recommended and this document will assume you're using it. To get started, see the Homebrew documentation, which also includes how to setup XCode Command Line Tools which you'll need for compilation.
Setup Dependencies
brew install cmake git mysql zlib
Clone the Source
git clone --recursive https://github.com/SapphireMordred/Sapphire.git sapphire
#required for current client version. Otherwise checkout the appropriate version for your client
git checkout develop
Compile
mkdir build && cd build
cmake .. -DCMAKE_CXX_COMPILER=/usr/bin/clang++
make -j 4
Configure
The build will output the binaries into bin/
in the folder you invoke cmake from, along with a subdirectory for config files. You will need the game data files plus a running DB to point the binaries at.
# configure MySQL, skip this if it's already running
mysql.server start
mysql_secure_installation
mysql.server stop
# start it as a service
brew services start mysql
You can then run the servers as normal processes.