Here's how to compile MaNGOS on any Linux distro, should be pretty much the same for other emulators. Make sure you have appropriate dependencies (cmake, gcc, etc)
Code:
mkdir mangos
cd mangos
git clone http://github.com/path/to/repo.git .
### If you need ScriptDev2 ###
cd src/bindings
mkdir scripts
cd scripts
git clone http://github.com/path/to/scriptdev/repo.git .
cd ../..
git apply src/bindings/scripts/patches/(name of patch).patch
### End ScriptDev2 ###
mkdir build
cd build
cmake ../ -DPREFIX=/path/to/where/you/want/the/executables -DPCH=1 -DACE_USE_EXTERNAL=0 -DDEBUG=0 -DTBB_USE_EXTERNAL=0
make && make install
Once that's done, you'll want to rename your config files from .conf.dist to .conf and edit your config files, typically in the etc folder, and then run extractors for vmaps/dbcs/mmaps/maps on your computer. Upload anything the extractors generated, then create your MySQL databases (some or all of: realmd, world, characters, and SD2 depending on your emulator), and restore the appropriate .SQL files for each. Most of that is pretty easy to figure out, just follow a readme from any guide, it's OS independent so you should have no trouble.