Newbie Spellweaver
- Joined
- Apr 29, 2008
- Messages
- 15
- Reaction score
- 0
[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
$ 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
NOTE: If you want to use an older revision please use:
$ hg clone --rev <revision number>
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.
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
You must be registered to see links
$ 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
You must be registered to see links
NOTE: If you want to use an older revision please use:
$ hg clone --rev <revision number>
You must be registered to 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 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.