setup server instructions - sonya75/evony-private-server GitHub Wiki

Instructions below are used on Ubuntu 18.10 (will not work on Ubuntu 19.10 as of 3/16/20)( due to incompatibility of some repos)

sudo apt update

sudo apt upgrade

sudo apt-get install -y build-essential cmake git mysql-client libmysqlclient-dev libssl-dev

sudo apt-get install software-properties-common

git clone -b dev https://github.com/sonya75/evony-private-server.git

sudo add-apt-repository ppa:ubuntu-toolchain-r/test

sudo apt update

sudo apt upgrade

sudo apt-get insatll gcc-7

sudo apt-get install g++-7

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-r 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 40 --slave /usr/bin/g++ g++ /usr/bin/g++-7

sudo update-alternatives --config gcc

sudo apt install python

cd spitfire

mkdir lib

cd lib

wget https://github.com/nlohmann/json/archive/v3.1.0.tar.gz

tar -xzf v3.1.0.tar.gz

cd json-3.1.0

cmake .

make

sudo make install

cd ..

wget https://github.comchriskohlhoff/asio/archive/asio-1-10-8.tar.gz

tar -xzf asio-1-10-8.tar.gz

cd asio-asio-1-10-8/asio

sudo apt-get install autoconf

./autogen.sh

cd ../..

sudo cp asio-asio-1-10-8/asio/include -r /usr/include

wget https://githuc.com/gabime/spdlog/archive/v0.16.3.tar.gz

tar -xzf v0.16.3.tar.gz

cd spdlog-0.16.3/

cmake .

make

sudo make install

sudo cp include -r /usr/include

cd ..

mkdir -p ./mysql

mkdir -p ./mysql/include

mkdir -p ./mysql/lib