This repository has been archived by the owner on Jul 10, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathSETUP.txt
53 lines (41 loc) · 1.4 KB
/
SETUP.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#1 - Create a new user
sudo adduser <username>
#2 - Switch to this account
sudo su - <username>
#3 - Get dependencies:
sudo apt-get install git cmake make gcc g++ libmariadbclient-dev libssl-dev libbz2-dev libreadline-dev libncurses-dev
#sudo apt-get install libboost-dev libboost-thread-dev libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-iostreams-dev
sudo apt-get install mysql-server p7zip
# Comment: you might want to replace all mysql libs for mariadb ones.
# Comment: dunno if libboost is really needed with SunwellCore.
#4 - Install ACE library.
cd ~
wget http://download.dre.vanderbilt.edu/previous_versions/ACE-6.0.3.tar.gz
tar xvzf ACE-6.0.3.tar.gz
cd ACE_wrappers/
mkdir build
cd build
../configure --disable-ssl
make
sudo make install
#5 - Pull the repository.
cd ~
git clone https://bitbucket.org/maczuga/sunwellcore.git
#6 - Create build directory
cd sunwellcore
mkdir build
cd build
#7 - CMAKE configuration
cmake ../ -DCMAKE_INSTALL_PREFIX=/home/$USER/server -DWITH_COREDEBUG=1 -DWITH_WARNINGS=0
# or
cmake ../ -DCMAKE_INSTALL_PREFIX=/home/$USER/server -DWITH_COREDEBUG=1
# low RAM - VPS
cmake ../ -DCMAKE_INSTALL_PREFIX=/home/$USER/server -DWITH_COREDEBUG=1 -DWITH_WARNINGS=0 -DUSE_COREPCH=0 -DUSE_SCRIPTPCH=0
#8 - Compilation
make -j <number of cores>
make install
################
# USEFUL LINKS #
################
# Restarter
https://gist.github.com/Lillecarl/5421446