-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to compile mod_archive2 module #9
Comments
@ndl It must be that I have not included module error_logger. For now I have commented the function export and call for info_msg and error_msg in Please let me know, how to do it right. I am complete newbie for erlang and all. |
@ndl after commenting logging function calls, I have the beam of mod_archive2, that I have successfully placed in ejabberd/ebin. Now ejabberd server does not start. Error
Here is my_ejabberd.cfg |
@ndl this "100,98,109,115,95,115,116,111,114,97,103,101,95" converts to "dbms_storage_" |
You're likely missing all the supporting beams, including dbms_storage* ones. You should compile all .erl files in mod_archive2/src directory. Either use make.sh script in the mod_archive2 root directory (assumes ejabberd sources are side-by-side to mod_archive2) and get resulting beams from "ebin" directory or copy these sources to the ejabberd source directory and compile ejabberd "as normal". |
Hi @ndl, Can we use mod_archive2 with ejabberd 13.12? Actually we are trying to plug mod_archive2 with ejabberd 13.12, but not able to. So just wanted to confirm if it's a compatible combination. If not can you please suggest what to use with ejabberd 13.12 to save the message to mysql db. Any help is appreciated. |
hi rakesh, mod_archive2 was for ejabberd 3.0 in mind, as such is not compatible straight away with ejab 13.x. you can try looking into mongooseim's mod_mam_archive, and try to import it into ejab. |
hi @softwarejoint : I am using ejabberd 14.07.Can I use mod_archive2?I cant switch to Mongoose. |
How to compile mod_archive2 module
Steps I done
$ cd to_mod_archive2_dir
$ erl -make
Then I copied ejabberd.hrl from ejabberd/include to src of mod_archive
$ erl -make
Then I get the exmpp code from processsone/exmpp
Now I am having these error's
$ erl -make
@ndl Please guide me, Thanks in advance
The text was updated successfully, but these errors were encountered: