yum -y install epel-release
yum -y update
yum -y groupinstall "Development Tools"
yum -y groupinstall "Compatibility Libraries"
yum -y install mercurial cmake3 wget links zip unzip openssl zlib-devel readline-devel bzip2-devel mariadb-devel
gcc install
yum install centos-release-scl
yum install devtoolset-6-gcc
scl enable devtoolset-6 bash
gcc --version
boost install
cd /usr/src
wget -c 'https://sourceforge.net/projects/boost/files/boost/1.66.0/boost_1_66_0.tar.gz/download'
tar -xvf download
cd boost_1_65_1
./bootstrap.sh
./b2 install
ln -s /usr/local/include/boost /usr/include/boost
cp -R /usr/local/lib/* /usr/lib/
cd /usr/src
git clone -b 3.3.5 git://github.com/TrinityCore/TrinityCore.git
cd TrinityCore
mkdir build
cd build
mkdir /apm/server
cmake3 ../ \
-DCMAKE_INSTALL_PREFIX=/apm/server/trinitycore \
-DTOOLS=1