Skip to content
This repository has been archived by the owner on Mar 14, 2020. It is now read-only.

Compiling OTServ 0.7.0 under OSX using the Terminal

Konrad Kuśnierz edited this page Feb 20, 2015 · 1 revision

This guide describes how to install OTServ using the terminal on mac OSX. Begin by opening up the terminal prompt.

Step 1: Installing Homebrew

First you need to intsall homebrew, if you have not done so already. Paste this one-liner into the terminal and run it:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

This should finish without error, now we can move on to actually getting OTServ to run

Step 2: Install packages

Now we need to install the packages required to configure and run OTServ, run:

brew install autoconf automake gmp boost lua libxml2 sqlite3 mysql

This will install all tools required to compile the server.

Step 3: Download sources

Download a .zip of the server master branch here: https://github.com/opentibia/server/zipball/master and extract it in your desktop.

Step 4: Configure & Compile

In the terminal navigate to otserver directory and create build directory:

cd ~/opentibia-server-<long code, hit tab to autocomplete it>
mkdir build
cd build

Start the compilation:

cmake -DUSE_MYSQL=On -DUSE_SQLITE=On -DCMAKE_BUILD_TYPE=Performance ..
make -j2