I have all the mysql .beam files needed for ejabberd. And I installed ejabberd via apt.
But when I try to copy those .beam files into /usr/lib/ebin directory and run ejabberd it echoes to ejabberd.log the following:
=INFO REPORT==== 2012-05-31 09:46:02 ===
application: ejabberd
exited: {bad_return,{{ejabberd_app,start,[normal,[]]},
{‘EXIT’,database_module_missing}}}
type: temporary
What I’m doing wrong?
What’s the correct way of adding mysql drivers to ejabberd apt installation?
BEAM files used by ejabberd are located in a different place — try putting your files there.
As a side note: are you sure those BEAM files are really OK? Erlang is not too permissive when it comes to binary portability, so it’s always advised to recompile the necessary code using the same release of Erlang as will run ejabberd on the target machine.