<p dir="ltr">Thanks Pierre,</p>
<p dir="ltr">Sorry for typo, I did the same thing as you mentioned. Because even after putting compile thing I was getting same error.</p>
<div class="gmail_quote">On 2 Feb 2016 7:22 pm, "Pierre Fenoll" <<a href="mailto:pierrefenoll@gmail.com">pierrefenoll@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div></div><div>Mohit,</div><div><br></div><div>The syntax of compile is wrong. </div><div><br></div><div>Replace</div><div>-compile[{$1}, {$2}]</div><div>With</div><div>-compile([{$1, $2}]).</div><div><br></div><div><br>On 02 Feb 2016, at 04:56, mohit Agrawal <<a href="mailto:mohit3081989@gmail.com" target="_blank">mohit3081989@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">Hi Team,<div><br></div><div>I am new to Erlang, I have been trying to install Erlang and Ejabberd on EC2 ubuntu machine, everything went well till I started compiling some external modules in ejabberd. It started throwing error "undefined parse transform 'lager_transform'". I tried everything which is as below :</div><div><br></div><div><ol><li>Did rebar get-deps, make clean, make deps, make install. After this I am able to see that lager_transform.beam is made and present in //lib/ folder.</li><li>Checked rebar.config file, it had lager deps on top, which is widely suggested, no help even after that.</li><li>Added -compile[{parse_tranform},{lager_transform}] on top of module, even then their is no luck.</li></ol><div>I am really blocked on this, and not able to complete the installation. I have done this before on fedora with Ejabberd 15.11 and otp 18.2, at that time it was using p1_logger instead of lager. But now when I am installing fresh with otp 18.2 and Ejabberd 16.0 or 15.11, I am getting lager_transform undefined error.</div><div><br></div><div>Please suggest and help</div><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr">Mohit Agrawal<br></div></div></div></div>
</div></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>erlang-questions mailing list</span><br><span><a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a></span><br><span><a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a></span><br></div></blockquote></div></blockquote></div>