I copied mod_shared_roster_ldap.erl, and mod_logmnesia.erl into the C:\Program Files\ejabberd-1.1.3\bin directory and attempted to compile them.
When I try to compile 2 add-ons to ejabberd it gives me the following errors:
With mod_shared_roster_ldap.erl, it gives me
;2> c(mod_shared_roster_ldap.erl).
;./mod_shared_roster_ldap.erl:none: internal error in parse_module;
;crash reason: {undef,[{epp,parse_file,
; ["./mod_shared_roster_ldap.erl",[".","."],[]]},
; {compile,parse_module,1},
; {compile,'-internal_comp/4-anonymous-1-',2},
; {compile,fold_comp,3},
; {compile,internal_comp,4},
; {compile,internal,3}]}
;error
With mod_logmnesia.erl it gives me almost the same thing
;4> c(mod_logmnesia.erl).
;./mod_logmnesia.erl:none: internal error in parse_module;
;crash reason: {undef,[{epp,parse_file,["./mod_logmnesia.erl",[".","."],[]]},
; {compile,parse_module,1},
; {compile,'-internal_comp/4-anonymous-1-',2},
; {compile,fold_comp,3},
; {compile,internal_comp,4},
; {compile,internal,3}]}
;error
I have a base install on ejabberd 1.1.3_1 on Windows XP SP2. This is just a test box; it will be deployed to a more permanent spot once I can prove it will work. It will be deployed to roughly 3000 employees thought western Canada.
Thanks
Try to compile using a full Erlang/OTP system
It seems erlang can't find the module 'epp'. Probably it was not included on your erlang installation, since you used a very minimal erlang installation (the one included in ejabberd installer).
If that's the problem, you must install the complete Erlang/OTP, which will include the required modules to compile the files you want. Once you have the compiled '.beam' files, you just need to copy those files with all the other ejabberd beam files.
Yes, the ejabberd installer
Yes, the ejabberd installer was intended for production and not development use, so the Erlang compiler is not included.
That said, given the nature of Erlang, that probably make sense to include it, and we will add it in new release of the installer to allow user to compile contributed modules.
The installer will be slightly large though.
--
Process-one
Mickaël Rémond
So how do i get the
So how do i get the complier?
Thanks
Adam
The Erlang/OTP installer
TheErlang/OTP installer includes the compiler. Check the downloads section of that page.
Thanks
Thanks guys, I'm trying it out as we speak.