+ Reply to Thread
Results 1 to 5 of 5

Thread: [Ubuntu] How to compile Trinity Core 2

  1. #1
    MMOpro Owner Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry's Avatar
    Join Date
    Mar 2009
    Location
    Serbia
    Posts
    1,285
    Thanks
    13
    Thanked 27 Times in 24 Posts
    Rep Power
    10

    [Ubuntu] How to compile Trinity Core 2

    CREDITS: FeestBijtje

    Required:
    -Server with Ubuntu Server 9.04
    -Knowledge what you will be doing!

    ------
    1. Installing Trinity Core 2
    ------
    Notes:
    This is just for the Trinity Core 2 system not the Web/MySQL server.
    Do not copy/paste the "$" symbol if you copy the commands.

    Alright, I assume you got an Ubuntu Server running and ready to prepare for Trinity Core2.

    First step:
    Install the required for the build, these files are very essential to almost every build.

    $ sudo aptitude install g++ gcc make cmake libmysql++-dev subversion mercurial openssl libssl-dev zlib1g-dev libtool libmysqlclient15-dev patch build-essential mysql-client libreadline5-dev
    It will ask you for a password type in your account password, and after that it will ask for a confirmation to install the packets. So press "Y" then hit the "Enter" key.

    Once this is installed we create ACE manually!

    We are going to make the trinity server account.

    $ sudo adduser trinity
    Note: Please do enter a secure password but easy to remember for you!

    Now we are going to log in on the user "trinity" and go to his home directory!

    $ su trinity
    $ cd ~/
    We do need the latest version of ACE and put it into a proper directory called "ACE".

    $ wget [Only registered and activated users can see links. ]
    $ tar xvzf ACE-5.7.0.tar.gz
    $ mv ACE_wrappers ACE
    We have downloaded ACE and placed it in the directory "/home/trinity/ACE"

    Now we are going to compile ACE version 5.7.0.

    $ cd ~/ACE/
    $ mkdir build
    $ cd build
    $ ../configure --prefix=/home/trinity/.sys/
    Note: The compile syntax is from the help of [Only registered and activated users can see links. ]

    After the configuration we must compile it!

    $ make
    $ make install
    Note: Depending on the system it can take up to 8 hours!

    After the compile we are ready to compile trinity!

    Now we got to prepare the directory where we going to put the bins in.

    $ cd ~/
    $ mkdir build
    ----This will be your BINARIES folder-----

    Now we got to checkout the source!

    $ hg clone [Only registered and activated users can see links. ]
    NOTE: If you want to use an older revision please use:

    $ hg clone --rev <revision number> [Only registered and activated users can see links. ]
    Now were going to configure the trinity server.

    $ cd ~/trinitycore2
    $ cmake -DPREFIX=/home/trinity/build -DACE_LIBRARY=/home/trinity/.sys/lib/libACE.so -DACE_INCLUDE_DIR=/home/trinity/.sys/include/
    NOTE: This is still done under user "trinity" and we will not change user!
    Note2: The compile syntax is from the help of [Only registered and activated users can see links. ]

    After you passed this you can build Trinity (takes some what 2 hours).

    $ make
    $ make install
    After this is done you can configure and run Trinity Core 2.
    It is located in "/home/trinity/build"

    ------
    2. How to update your Trinity Core 2 Server.
    ------
    Updating is very simple and here I show you what commands to perform.
    I assume you are logged in a new session and you are located in the root of your home directory "/home/trinity/".

    Like in our last build we checked out with the hg command at "/home/trinity/trinitycore2/" we have to browse there.

    cd ~/trinitycore2
    Now we are going to check for updates with "hg" command (Really love Mercury).

    hg pull
    Now we are going to update the files.

    hg update
    it should display how many files were updated/merged/modified!

    Now we can reconfigure Trinity Core 2

    cmake -DPREFIX=/home/trinity/build -DACE_LIBRARY=/home/trinity/.sys/lib/libACE.so -DACE_INCLUDE_DIR=/home/trinity/.sys/include/
    make
    Before you are going to do 'make install' be 100% sure that both realm and core is down!
    I always run my server under the screen command so in my case I should do 'screen -r' and terminate those screens.
    If you don't know with pid's you are running and want to kill them simply apply

    sudo pkill -u trinity
    Alright we are going to install the newer version!

    make install
    NOTE: This might overwrite your config files so please do back them up!

    ------
    5. References
    ------
    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ] (Autcompiler) credits to Elegos
    [Only registered and activated users can see links. ] (Restarter) credits to Elegos
    [Only registered and activated users can see links. ] credits to KinPing
    [Only registered and activated users can see links. ] Credits to Canonical Ltd
    [Only registered and activated users can see links. ] Credits to their respective owners

    /* If I did missed some thing out please give me a yell *\

    Credits:
    -FeestBijtje for writing this.
    -Google for finding the proper information.
    -Elegos for his knowledge (I found his answers on google)

    Updates:
    29-7-2009 - Fixed so it will be done 100% from user 'trinity'.
    30-7-2009 - Added "cd build" command.
    30-7-2009 - Fixed tar command.
    31-7-2009 - Added "how to update".
    31-7-2009 - Added references url's.
    31-7-2009 - Added missing packages.

  2. #2
    Leecher moska is on a distinguished road
    Join Date
    Aug 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Good Guide! up! XD
    Last edited by moska; 09-01-2009 at 10:04 PM.

  3. #3
    Leecher spello is on a distinguished road
    Join Date
    Oct 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Man, I just spend 2 weeks of searching for the solution with Ubuntu and ACE library. And here it is, the solution ... I've just been looking for this. Thank You.

  4. #4
    MMOpro Owner Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry's Avatar
    Join Date
    Mar 2009
    Location
    Serbia
    Posts
    1,285
    Thanks
    13
    Thanked 27 Times in 24 Posts
    Rep Power
    10

    Quote Originally Posted by spello View Post
    Man, I just spend 2 weeks of searching for the solution with Ubuntu and ACE library. And here it is, the solution ... I've just been looking for this. Thank You.
    Thank you for supporting us

  5. #5
    Leecher spase is on a distinguished road
    Join Date
    Feb 2010
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    1

    Excellent guide ! Merci !

+ Reply to Thread

Similar Threads

  1. [Release] SH Pack, 3.1.3 Trinity Core 2 Rev 4092, UDB 381
    By Jerry in forum Emulator Server Releases
    Replies: 17
    Last Post: 03-01-2010, 09:37 AM
  2. Compile MaNGOS On Linux
    By Jerry in forum Mangos Guides
    Replies: 0
    Last Post: 07-12-2009, 06:17 AM
  3. How to compile arcemu 3.1.x
    By Jerry in forum ArcEmu Guides
    Replies: 0
    Last Post: 07-11-2009, 04:34 PM
  4. Compile Mangos on Ubuntu
    By Jerry in forum Mangos Guides
    Replies: 6
    Last Post: 07-08-2009, 07:38 AM
  5. How to compile Mangos 3.1.X!
    By Jerry in forum Mangos Guides
    Replies: 0
    Last Post: 07-05-2009, 04:46 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts