forked from mangos/MaNGOS
-
Notifications
You must be signed in to change notification settings - Fork 1
How to compile MaNGOS on Linux.
MiLk edited this page Sep 13, 2010
·
33 revisions
To begin, 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 <code>apt-get install gcc g++ automake autoconf make libmysql++-dev libtool libssl-dev zlibc libc6 apt-get install subversion patch git git-core cogito</code> To use git and not use gitfm, you must do this : <code>update-alternatives --config git</code> You must enter the digit which match with : <code>/usr/bin/git-scm</code> On Gentoo, you must do it : <code>emerge dev-util/git </code> You must to download the files from the git repository, git create your mangos sources dir for you. <code> git clone git://github.com/mangos/mangos.git cd mangos</code> You must download and patch ScriptDev2. <code> mkdir src/bindings/ScriptDev2 svn co https://scriptdev2.svn.sourceforge.net/svnroot/scriptdev2/ src/bindings/ScriptDev2 patch -p0 < src/bindings/ScriptDev2/patches/MaNGOS-r6765-ScriptDev2.patch</code> Then, you must compile. <code> autoreconf --install --force aclocal autoheader autoconf automake --add-missing 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</code> 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