ejabberd - Comments for "Newbie module development" https://www.ejabberd.im/node/21624 en You need to provide path to https://www.ejabberd.im/node/21624#comment-65315 <p>You need to provide path to gen_mod which is in include folder of ejabberd installation..</p> <p>Just create an Emakefile, add following</p> <p>{'mod_your_mod_name', [{outdir, "ebin"},{i,"/usr/lib/ejabberd/include"}]}.</p> <p>and </p> <p>then run "erl -pa /usr/lib/ejabberd/ebin -pz ebin -make"</p> <p>best of luck..</p> Thu, 05 Mar 2015 19:27:06 +0000 tarikhs comment 65315 at https://www.ejabberd.im hi! I am new using ejabberd. https://www.ejabberd.im/node/21624#comment-64688 <p>hi!</p> <p>I am new using ejabberd. this make sense to me now.</p> Tue, 12 Aug 2014 13:12:47 +0000 heidihock comment 64688 at https://www.ejabberd.im SharonU wrote: Hi, I’m trying https://www.ejabberd.im/node/21624#comment-64618 <div class="quote-msg"> <div class="quote-author"><em>SharonU</em> wrote:</div> <p>Hi,</p> <p>I’m trying to start with developing modules.</p> <p>After compiling my module, I don’t seem to be able to produce a .beam file... Using the command:</p> <p>erlc -I /path/to/my/installation/ebin/ mod_test.erl</p> <p>I get only one warning:</p> <p>Warning: behaviour gen_mod undefined</p> <p>And that’s as far as I can get. Any advices please?</p></div> <p>I get the same thing any help would be good</p> <ul class="field"> <li class="field-label-inline"><noindex><a href="http://www.onlinepokiesplay.com.au/" rel="nofollow" ></a></noindex></li> </ul> Thu, 07 Aug 2014 02:14:14 +0000 mak445 comment 64618 at https://www.ejabberd.im This is not the short https://www.ejabberd.im/node/21624#comment-64343 <p>This is not the short solution, but if you plan to develop erlang code, this will save you work in the future:</p> <p>1. Download ejabberd source code, probably from Git repository. This is a good idea, because that way you have at hand the ejabberd source code to read and learn<br /> 2. Compile ejabberd (by running "make"). This is good because soon you will want to tweak ejabberd source code too, not only your modules.<br /> 3. Copy your custom module to ejabberd src/ dir.<br /> 4. Compile again. This time it will compile your module<br /> 5. Copy your beam file to where the other ejabberd beam files are installed</p> Tue, 22 Jul 2014 19:01:19 +0000 mfoss comment 64343 at https://www.ejabberd.im