forked from mangos/MaNGOS
-
Notifications
You must be signed in to change notification settings - Fork 1
How to compile MaNGOS on Linux.
Mateo0169 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
This is for Debian based systems !
apt-get install gcc g++ automake autoconf make libmysql++-dev libtool libssl-dev subversion patch zlibc libc6 git git-core cogito
On Ubuntu, you can also type :
apt-get install build-essential libmysql++-dev libtool libssl-dev subversion zlibc git-core
If you are using Gentoo, you must do it :
emerge dev-util/git
You must to download the files from the git repository, git create your mangos sources dir 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.net/svnroot/scriptdev2/ src/bindings/ScriptDev2
git apply src/bindings/ScriptDev2/patches/MaNGOS-2008-10-23-ScriptDev2.patch
Then, you must compile.
autoreconf --install
mkdir objdir
cd objdir
../configure --prefix=/opt/mangos --sysconfdir=/opt/mangos/etc --enable-cli --enable-ra --datadir=/opt/mangos/dat
make
make install
cd ..
rm -r objdir
You can replace ../configure --prefix=/opt/mangos --sysconfdir=/opt/mangos/etc --enable-cli --enable-ra --datadir=/opt/mangos/dat
by ../configure --prefix=[working path] --sysconfdir=[working path]/etc --enable-cli --enable-ra --datadir=[working path]/dat
with your [working path]
Good Luck