Skip to content

Compiling on Debian 10 buster

Yujin Boby edited this page Aug 27, 2022 · 3 revisions

Update cache

sudo apt update

Install requirements

sudo apt-get -y install autoconf build-essential pkg-config libboost-dev libgmp3-dev libxml2-dev liblua5.1-0-dev default-libmysqlclient-dev libcrypto++-dev ccache libboost-filesystem-dev libboost-regex-dev libboost-system-dev libboost-thread-dev libssl-dev lua5.1 libncurses5-dev git

Download source code from git repo and compile

git clone https://github.com/Ezzz-dev/OTHire
cd OTHire/source
sh autogen.sh
./configure --enable-mysql --enable-server-diag
sed -i 's/Connection::read_timeout/30/g' connection.cpp
sed -i 's/Connection::write_timeout/30/g' connection.cpp
make

If make completed without error, you will see "otserv" in the source folder.