[Ubuntu] How to compile Trinity Core 2----repost

Results 1 to 6 of 6
  1. #1
    Apprentice m1nd bl4ck is offline
    MemberRank
    Apr 2008 Join Date
    24Posts

    thumbs up [Ubuntu] How to compile Trinity Core 2----repost

    [Ubuntu] How to compile Trinity Core 2



    Required:
    -Server with Ubuntu Server 10.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 http://download.dre.vanderbilt.edu/p...E-6.0.1.tar.gz
    $ tar xvzf ACE-6.0.1.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 elegos

    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 https://bitbucket.org/jeniczek/trinitycore2
    NOTE: If you want to use an older revision please use:

    $ hg clone --rev <revision number> https://bitbucket.org/jeniczek/trinitycore2
    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 elegos

    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
    ------
    The ADAPTIVE Communication Enviroment (ACE)
    Elegos Project (Autcompiler) credits to Elegos
    Elegos Project (Restarter) credits to Elegos
    Trinity Core 2 SVN credits to KinPing
    Ubuntu Repository Credits to Canonical Ltd
    Unified Data Base 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
    Novice killerteddy is offline
    MemberRank
    Apr 2011 Join Date
    2Posts

    Re: [Ubuntu] How to compile Trinity Core 2----repost

    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking target system type... i686-pc-linux-gnu
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... no
    checking for mawk... mawk
    checking whether make sets $(MAKE)... yes
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking whether #! works in shell scripts... yes
    checking for g++... no
    checking for c++... no
    checking for gpp... no
    checking for aCC... no
    checking for CC... no
    checking for cxx... no
    checking for cc++... no
    checking for cl.exe... no
    checking for FCC... no
    checking for KCC... no
    checking for RCC... no
    checking for xlC_r... no
    checking for xlC... no
    checking whether the C++ compiler works... no
    configure: error: in `/home/trinity/ACE/build':
    configure: error: C++ compiler cannot create executables
    See `config.log' for more details.

    i keep getting this error and dont know what to do please help! :)

  3. #3
    Valued Member intheloft is offline
    MemberRank
    Nov 2006 Join Date
    localhostLocation
    147Posts

    Re: [Ubuntu] How to compile Trinity Core 2----repost

    Quote Originally Posted by killerteddy View Post
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking target system type... i686-pc-linux-gnu
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... no
    checking for mawk... mawk
    checking whether make sets $(MAKE)... yes
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking whether #! works in shell scripts... yes
    checking for g++... no
    checking for c++... no
    checking for gpp... no
    checking for aCC... no
    checking for CC... no
    checking for cxx... no
    checking for cc++... no
    checking for cl.exe... no
    checking for FCC... no
    checking for KCC... no
    checking for RCC... no
    checking for xlC_r... no
    checking for xlC... no
    checking whether the C++ compiler works... no
    configure: error: in `/home/trinity/ACE/build':
    configure: error: C++ compiler cannot create executables
    See `config.log' for more details.

    i keep getting this error and dont know what to do please help! :)

    Run this
    yum groupinstall "development tools"

  4. #4
    Novice xS0u1zx is offline
    MemberRank
    May 2011 Join Date
    1Posts

    Re: [Ubuntu] How to compile Trinity Core 2----repost

    Out of curiousity, how would someone go about compiling trinity with git instead?

  5. #5
    Apprentice joker294 is offline
    MemberRank
    Jun 2012 Join Date
    23Posts

    Re: [Ubuntu] How to compile Trinity Core 2----repost

    great read. thank you so much for this information.. now i have to try this..

  6. #6
    Enthusiast txie2k8 is offline
    MemberRank
    Jun 2011 Join Date
    38Posts

    Re: [Ubuntu] How to compile Trinity Core 2----repost

    Quote Originally Posted by killerteddy View Post
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking target system type... i686-pc-linux-gnu
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... no
    checking for mawk... mawk
    checking whether make sets $(MAKE)... yes
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking whether #! works in shell scripts... yes
    checking for g++... no
    checking for c++... no
    checking for gpp... no
    checking for aCC... no
    checking for CC... no
    checking for cxx... no
    checking for cc++... no
    checking for cl.exe... no
    checking for FCC... no
    checking for KCC... no
    checking for RCC... no
    checking for xlC_r... no
    checking for xlC... no
    checking whether the C++ compiler works... no
    configure: error: in `/home/trinity/ACE/build':
    configure: error: C++ compiler cannot create executables
    See `config.log' for more details.

    i keep getting this error and dont know what to do please help! :)
    Using uBuntu/Debian you need to make sure you have the tools installed

    aptitude install build-essential readline gettext autoconf automake bzip2-dev

    (build-essential may also be called build-essentials depending on how old your version of Debian/uBuntu is)

    Quote Originally Posted by xS0u1zx View Post
    Out of curiousity, how would someone go about compiling trinity with git instead?
    just change the command from hg clone to git clone maybe?

    Just a couple notes for people that are having problems getting ACE to compile. It DOES come pre-bundled with Debian/uBuntu systems. It's a little bit older than the version used in the guide but still appears to work 100%

    aptitude install libace-dev

    this will install the development files and libraries (will also install libACE as a dependancy)

    then just configure Trinity with cmake -DPREFIX=/home/trinity/build



Advertisement