|
|
ViewsThis wiki is KPs Network community driven, information in this wiki may not apply to all situations. Compiling Mangos (Linux)From KP's Network
[edit] IntroductionThis Tutorial shows you how to build Mangos Binaries on a Linux Machine [edit] RequirementsFor a detailed list on what you need to successfully run Mangos please have a look at Mangos Basics To compile Mangos on Linux you will need the following
[edit] Getting StartedFirst step is to create a directory where you want to have your mangos-sourcecode. This directory will be called SOURCE-directory later on. Go to the the directory of you likeings and create a directory mkdir MANGOS-SOURCE My advice is to create the SOURCE-directory whithin a MANGOS-directory. This will help you later on when we want to get some scripts into the source. mkdir MANGOS cd MAGNOS mkdir MANGOS-SOURCE Now we need to checkout the source from Mangos-subversion-repository. We only want the newest sources - so we'll checkout the trunk. First change to your newly created SOURCE-directory cd MANGOS-SOURCE svn co https://svn.sourceforge.net/svnroot/mangos/trunk/ . Depending on your internet connection this could take a while. Get a coke or something. Remember: If you ever want to upgrade to a newer revision you don't have to checkout the complete trunk again. Just change to the MANGOS-SOURCE-directory and type svn up This will only update the files, that actually changed. Saves time and money. [edit] ConfiguringNow that we have the source we have to tell make where everything is supposed to go. To to this you run something like this: ./configure --prefix=<destination directory> \ --sysconfdir=<configuration directory> \ --datadir=<datadir destination> \ --enable-cli --enable-ra \ --with-python
So maybe you're command will look something like this: ./configure --prefix=/opt/mangos --sysconfdir=/opt/mangos/etc --enable-cli --datadir=/opt/mangos This tutorial WILL assume prefix and datadir are set to the same values and sysconfdir is the same with the "/etc"-addition. [edit] Ready to MakeNow that you have configured the source it's time for compiling. Simply type: make && make install to start the process. Compiling can take quite some time. Categories: Mangos | Linux | Compiling |