How to compile MaNGOS on Linux. - Schmoozerd/mangos-wotlk GitHub Wiki
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 or mysql-server 5.0 && libmysql++-dev
- libtool
- OpenSSL (libssl-dev)
- 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 cogitoOn Ubuntu, you can also type :
sudo apt-get install build-essential libmysql++-dev libtool libssl-dev subversion zlibc git-coreIf you are using Gentoo, you also must type :
emerge dev-util/gitThen, on some Debian based system (except Ubuntu)
update-alternatives --config gitYou must enter the digit/number which matches with :
/usr/bin/git-scmTo download the files from the git repository, git must create your mangos sources dir for you.
git clone git://github.com/mangos/mangos.git
cd mangos(Optional) Download and patch ScriptDev2:
git clone git://github.com/scriptdev2/scriptdev2.git src/bindings/ScriptDev2
git am src/bindings/ScriptDev2/patches/MaNGOS-11167-ScriptDev2.patchThen, you must compile.
// for dual core support on make, make install add "-j2"
autoreconf --install --force
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