PDA

View Full Version : How to compile MaNGOS on Linux ( Using GIT )



Wise
16-08-10, 12:48 AM
You must install :

* GCC 4.1.X ( gcc / g++ / cpp / fort77 / g77 / gpp)
* automake
* autoconf
* glibc & glibc-dev(glibc headers) [ libc6 ]
* make
* mysql-server 4.1 ou mysql-server 5.0 && libmysql++-dev
* libtool
* OpenSSL (libssl-dev)
* subversion et patch
* git
* zlibc You can do this using the terminal:

apt-get install build-essential binutils gcc g++ cpp automake autoconf make libmysql++-dev libtool libssl-dev subversion patch zlibc libc6 git-core You must download the files from the git repository, git will create your mangos sources directory for you.

git clone git://github.com/mangos/mangos.git
cd mangos You must download and patch ScriptDev2.

mkdir src/bindings/ScriptDev2
svn co https://scriptdev2.svn.sourceforge.n...ot/scriptdev2/ (https://scriptdev2.svn.sourceforge.net/svnroot/scriptdev2/) src/bindings/ScriptDev2
git apply src/bindings/ScriptDev2/patches/MaNGOS-2008-12-22-ScriptDev2.patch You can use

git am src/bindings/ScriptDev2/patches/MaNGOS-2008-12-22-ScriptDev2.patchto commit the patch, which is the way it was intended to be. git-apply just applies changes, while git-am commits patches. Please note that you cannot commit a diff (= the thing you now call "patch"), but you can commit a git patch (which is in fact "portable commit in a file") created using git-format-patch.
If you want to apply only changes to stash them later, use git-apply, if you want to commit the sd2 patch, use git-am and you don't have to manually call git-commit.

Once you have patched mangos, you compile it.

autoreconf --install --force
automake src/bindings/ScriptDev2/Makefile
mkdir objdir
cd objdir
../configure --prefix=/opt/mangos --sysconfdir=/opt/mangos/etc --enable-cli --enable-ra --datadir=/opt/mangos
make
make install
make clean
cd ..
rm -r objdir You can replace ../configure --prefix=/opt/mangos --sysconfdir=/opt/mangos/etc --enable-cli --enable-ra --datadir=/opt/mangos
by ../configure --prefix=[working path] --sysconfdir=[working path]/etc --enable-cli --enable-ra --datadir=[working path]
with your [working path]

Good Luck


Credit to mimi133 for making useful guide