[linux]Build Server with G++, OpenSSL & ACE

Stabatha

Gold Supporter
8
2018
1
Since most repo wiki's are very outdated. Here is how to build your requirements before compiling a core. For all versions of Ubuntu and Deb 8 & 9.

apt-get install build-essential autoconf libtool gcc g++ make cmake subversion git patch wget links zip unzip mysql-server mysql-client libmysql++-dev libreadline-dev zlib1g-dev libbz2-dev git-core libace-dev libncurses5-dev

apt remove openssl libssl-dev

(you can change version to fit your needs - WOTLK and lower be sure to use version 0.9.8 not 1.0.2)
wget http://ftp.debian.org/debian/pool/main/o/openssl/libssl-dev_1.0.2l-1~bpo8+1_amd64.deb
wget http://ftp.debian.org/debian/pool/main/o/openssl/libssl1.0.0_1.0.2l-1~bpo8+1_amd64.deb
wget http://ftp.debian.org/debian/pool/main/o/openssl/openssl_1.0.2l-1~bpo8+1_amd64.deb
dpkg -i libssl1.0.0_1.0.2l-1~bpo8+1_amd64.deb
dpkg -i openssl_1.0.2l-1~bpo8+1_amd64.deb
dpkg -i libssl-dev_1.0.2l-1~bpo8+1_amd64.deb

ggc --version
if GCC is 6.0 or higher, skip this step and continue on to installing ACE.

apt-get install software-properties-common
add-apt-repository ppa:ubuntu-toolchain-r/test -y
apt-get update
apt-get install gcc-6 g++-6
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 100
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 100
update-alternatives --install /usr/bin/cpp cpp-bin /usr/bin/cpp-6 100
update-alternatives --config gcc
export CXX=/usr/bin/g++-6 CC=/usr/bin/gcc-6

(you can change version to fit your needs)
wget http://download.dre.vanderbilt.edu/previous_versions/ACE-6.0.0.tar.gz
tar xvzf ACE-6.0.0.tar.gz
cd ACE_wrappers/
mkdir build
cd build
../configure --disable-ssl
make
make install

You are now ready to clone your favorite core!
 
  • Like
Reactions: ExO

ExO

Admin
5,094
2014
1,454
Very nice tutorial! Surely useful, because indeed most are outdated.

Thanks!
 
Top