Create the Source Directory
Start of by creating a directory for our source and navigate to it. In this tutorial we'll use the directory '~/sources/OpenTibia/OTServ'.
Downloading the Source
In this tutorial we'll download OTServ trunk which is not considered to be stable but works very well most of the time.
First we need to install SVN to download the source.
Install Packages
Now we'll install most packages needed to compile OTServ using apt-get. The list of packages below is not a full list of packages needed to co.mpCompiling the Sourceile OTServ but all packages should be dependencies of these and be installed automatically.
To use apt-get we first need to use su.
Compiling the Source
Compile with MySQL Support
Install libmysqlclient15-dev and compile the source with MySQL enabled.
Compile with PostreSQL Support
Install libpq-dev and compile the source with PostgreSQL enabled.
Compile with SQLite Support
Install libsqlite3-dev and compile the source with SQLite enabled.
//trojoka
Start of by creating a directory for our source and navigate to it. In this tutorial we'll use the directory '~/sources/OpenTibia/OTServ'.
Code:
mkdir -p ~/sources/OTServ
cd ~/sources/OTServ
Downloading the Source
In this tutorial we'll download OTServ trunk which is not considered to be stable but works very well most of the time.
First we need to install SVN to download the source.
Code:
su
apt-get install subversion
exit
Install Packages
Now we'll install most packages needed to compile OTServ using apt-get. The list of packages below is not a full list of packages needed to co.mpCompiling the Sourceile OTServ but all packages should be dependencies of these and be installed automatically.
To use apt-get we first need to use su.
Code:
su
apt-get install autoconf libxml2-dev liblua5.1-0-dev g++ libgmp3-dev libboost1.35-dev make
exit
Compiling the Source
Compile with MySQL Support
Install libmysqlclient15-dev and compile the source with MySQL enabled.
Code:
su
apt-get install libmysqlclient15-dev
exit
./autogen.sh
./configure --enable-mysql
make
Compile with PostreSQL Support
Install libpq-dev and compile the source with PostgreSQL enabled.
Code:
su
apt-get install libpq-dev
exit
./autogen.sh
./configure --enable-pgsql
make
Compile with SQLite Support
Install libsqlite3-dev and compile the source with SQLite enabled.
Code:
su
apt-get install libsqlite3-dev
exit
./autogen.sh
./configure
make
//trojoka