KingPin's Forum
Personal tools

This wiki is KPs Network community driven, information in this wiki may not apply to all situations.

Compiling Mangos (Linux)

From KP's Network

Contents

[edit] Introduction

This Tutorial shows you how to build Mangos Binaries on a Linux Machine

[edit] Requirements

For 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

  • Subversion
  • GCC (version 3.4 or 4 and above)
  • G++ (version 3.4 or 4 and above)
  • glibc/glibc-dev
  • Make
  • Automake (version 1.4 and above)
  • Autoconf
  • MySQL (version 4.1 or 5 and above)

[edit] Getting Started

First 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] Configuring

Now 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
option meaning
<destination directory> where the executable will be put (inside a bin-directory)
<configuration directory> where mangosd.conf and realmd.conf will be
<datadir destination> where you'll have to put dbc and maps-files
--enable-cli enable the Command Line Interface (assumed cli does mean that - but it does what it says)
--enable-ra enable mangos to to remotely accessible via telnet (watch your security!)
--with-python actually the python directory is empty so this option doesn't do anything

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 Make

Now 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.



These are the 100 most searched terms
Search Cloud
_backup.rc antrix wow antrix wow server autocad 2007 keygen best google gadgets best wow character bt map devil may cry 4 crack enchanting leveling erika bella fuckteam fuckteam 5 georgina lempin gigistar gigistar topless kpsden kpsforum leatherworking guide leveling enchanting mangos custom vendors mangos item id mangos linux mangos server mangos spell id mangos wotlk mature creampie milena velba no rest for the ass object id wow phoenix marie this is sparta vipersdenforums voyage century bot windows activation workaround windows xp lite wotlk alpha private server wotlk private server wotlk server wotlk wiki wow leatherworking guide wow mount locations wow object id wow object id list wow object id's wow object ids wow objects id www.adobeflashplayer www.adobeflashplayer.com www.kpsforum.com xbox 360 mmorpg ... powered by Simple Search Cloud
Powered by vBulletin® Version 3.8.0 Beta 3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Powered by vbWiki Pro 1.3 RC5. Copyright ©2006-2007, NuHit, LLC

Copyright 2004-2009 KPsN


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82