Skip to content

Compiling OTServ under OSX using the Terminal

Hampus Joakim Nilsson edited this page Aug 3, 2012 · 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:

/usr/bin/ruby -e "$(/usr/bin/curl -fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"

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:

homebrew install autoconf automake gmp boost lua libxml2 sqlite3

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 home folder.

Step 4: Configure & Compile

In the terminal, enter the otserver folder by doing:

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

Now you are poised to start the compilation, run:

./autogen.sh
./configure --enable-sqlite
Clone this wiki locally