Hello there people.
If any of you are getting this error
We#hen compiling.
ERROR: compile failed while processing /home/marcus/ejabberd: rebar_abort
make: *** [src] Error 1
Use the Github version.
It fixed the error i had. Also dont forget to do this ./configure --enable-mysql