Installing TrinityCore dependencies on Ubuntu 10.04

This guide is meant to accompany my release-specific build guides for TrinityCore/TDB releases on Ubuntu, in order to cut down on duplicate content in those posts since these procedures for brand new installations don't change.

TrinityCore dependency packages in Ubuntu

First, install the Ubuntu packages required for building TrinityCore.



$ sudo aptitude install build-essential autoconf libtool gcc g++ make cmake subversion mercurial patch wget links zip unzip unrar openssl libssl-dev mysql-server mysql-client libmysqlclient15-dev libmysql++-dev libreadline5-dev zlib1g-dev libbz2-dev
Now create a separate 'trinity' user for the server to run under (or you can call this user 'tc' or whatever you like). Then, switch to this user and start setting up the dependencies which we must build. Note that on my development desktop machine, I give 'trinity' sudo on Ubuntu by putting it in the admin group, in order to install some libraries systemwide. If you're preparing a public server, you should remove the 'trinity' user's sudo privileges with "sudo gpasswd -d trinity admin" after dependency setup is complete.

    $ sudo adduser trinity
    $ sudo usermod -G admin -a trinity
    $ su - trinity

Building ACE 5.7.8

One of the TrinityCore dependencies is the ACE framework. The latest version, 5.7.8, is recommended by the TrinityCore developers. I confirmed that Ubuntu 10.04's ACE packages are older than 5.7.8:

    $ apt-cache policy libace-dev | grep Candidate
    Candidate: 5.6.3-6

So, it's still appropriate to build by hand:

    $ cd ~/
    $ wget http://download.dre.vanderbilt.edu/previous_versions/ACE-5.7.8.tar.gz
    $ tar xvzf ACE-5.7.8.tar.gz
    $ cd ~/ACE_wrappers/
    $ mkdir build
    $ cd build
    $ ../configure    
    $ make
    $ sudo make install

That's it! You are now ready to install TrinityCore and TDB in your new build environment. Continue on with checking out the code and building.

No comments:

Post a Comment

Comments welcome!

Recent Posts