Build ejabberd from scratch

I have a working ejabberd server that uses MySQL as a backend. This server was created with the Linux binary installer which, besides my tls issues (http://www.ejabberd.im/node/2692), is working quite well. My goal, however, is to have such a server that can use mod_logdb or something to archive messages to a database. Maybe someone can correct me, but it seems I cannot use the binary version of ejabberd if I want to use mod_logdb as it requires patching to the ejabberd source code. Because of this, I've restarted with compiling erlang (http://www.erlang.org/download/otp_src_R11B-4.tar.gz) and can't seem to get erlang to configure without...

*********************************************************************
********************** APPLICATIONS DISABLED **********************
*********************************************************************

jinterface : No Java compiler found
odbc : No odbc library found

*********************************************************************

Can I archive messages to MySQL with the ejabberd files from the binary? If not...

How do I build erlang with support for the MySQL access I require? I've googled many sites but the closest I could get to a HOWTO is https://support.process-one.net/doc/display/CONTRIBS/Yxa but this page seems to be missing the steps after "Download". Now I will gladly take a RTFM if you give me a link to where TFM is.

I think the hardest part about getting ejabberd going is getting erlang built. Thanks.

dirkniblick wrote: it seems

dirkniblick wrote:

it seems I cannot use the binary version of ejabberd if I want to use mod_logdb as it requires patching to the ejabberd source code.

Right: mod_logdb requires patching some files in ejabberd, and recompile them.

Note that you can patch source code and recompile in your home computer, while you taste a cup of tea. Later copy only the modified *.beam files to your server machine. As long as you use the same ejabberd version and a similar Erlang version in both the server and home computer, the beam files will work.

dirkniblick wrote:

Because of this, I've restarted with compiling erlang
...
I think the hardest part about getting ejabberd going is getting erlang built.

If your distribution provides an Erlang/OTP package, you will save a lot of time compiling it :)

dirkniblick wrote:

and can't seem to get erlang to configure without...

*********************************************************************
********************** APPLICATIONS DISABLED **********************
*********************************************************************

jinterface : No Java compiler found
odbc : No odbc library found

*********************************************************************

Did you try this when preparing the Erlang compilation?

./configure --enable-odbc

If this is on the linux

If this is on the linux machine do yum install unixODBC, unixODBC-devel the try to compile with ./configure --enabled-odbc

Then it should work

Syndicate content