Hi all,
I developed a module for logging chat messages to a mysql db:
(I adapted it from mod_log_chat).
It's my first module with a lot code, and I don't really know how to program erlang.
It would be very nice if someone could take a look and point me to some improvements I could do. I'm sure there are a lot.
Cheers,
Michael
Hello Michael I try to
Hello Michael
I try to implement mod_log_chat_mysql5 module in my ejabbered however need to install emysql.
When i am trying to create ".beam" files form source ".erl" files,
Source:https://github.com/Eonblast/Emysql
All ".beam" files are created successfully except this two files...
emysql_conn.erl
emysql_util.erl
try with this command
erlc -I includes/ejabberd/include emysql_conn.erl
Error:
C:/Program Files/ejabberd-2.1.9/bin/emysql_conn.erl:55: function atom_to_binary/2 undefined
C:/Program Files/ejabberd-2.1.9/bin/emysql_conn.erl:79: function atom_to_binary/2 undefined
erlc -I includes/ejabberd/include emysql_conn.erl
Error:
C:/Program Files/ejabberd-2.1.9/bin/emysql_util.erl:57: function binary_to_atom/2 undefined
Please advice me how to create .beam files for ejabberd in windows system...
Thanks
Nishant
The problem is that
The problem is that mod_log_chat_mysql5 calls the function atom_to_binary/2, but that works only in Erlang R13 and newer. You are using ejabberd 2.1.9 installer, which includes the old Erlang R12.
Solution: use the ejabberd 2.1.10 installer, which I think includes the new Erlang R14, so it provides atom_to_binary/2, and should work with mod_log_chat_mysql5
it's not working on ejabberd
it's not working on ejabberd 2.1.10 but i working on 3.00 beta-1.
So now i am able to create .beam files successfully
However chat not stored in db. it gives error :(
is it possible without emysql?
Please help me!
Please post the error message
Please post the error message you get. And it may be better if you open an issue on the github page to track this down:
https://github.com/candy-chat/mod_log_chat_mysql5/issues
Sorry didn't see that. Does
Sorry didn't see that. Does it work now?
Hello Could you please tell
Hello
Could you please tell me which of ejabbered version compatible with this module?
I really get out of this, please guide me....
Thanks
Nishant