<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi,</div><div><br></div><div>To use the Erlang client I created an App following the OTP design principles (folder structure, etc).</div><div><br></div><div>Then I have a folder deps like this:</div><div><br></div><div>deps /</div><div><span class="Apple-tab-span" style="white-space:pre">        amqp_client</span>/<span class="Apple-tab-span" style="white-space:pre">                        </span></div><div><span class="Apple-tab-span" style="white-space:pre">        rabbit_common</span><b>/</b></div><div><br></div><div>I've got the content of those folders from the .ez files distributed on the plugins area of <a href="http://rabbitmq.com">rabbitmq.com</a></div><div><br></div><div>So I have a rebar.config file like this:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        {erl_opts, [debug_info, fail_on_warning,                                                                                                                                                                  
                  {i, "include"},                                                                                                                                                                                         
                {i, "deps"}                                                                                                                                                                                             
        ]}.                                                                                                                                                                                                       </span></div><div><br></div><div>Which AFAIK will be translated to an erlc option like: erlc -I deps -I include … etc etc</div><div><br></div><div>Then on my app .hrl file with the records definitions and so on I added:</div><div><br></div><div>-include_lib("amqp_client/include/amqp_client.hrl").</div><div><br></div><div>-include_lib then will try to find the amqp_client app in your load path… which is what the -I deps option should take care off.</div><div><br></div><div>I think that's the *way* of doing it in Erlang, probably Matthew can comment on that.</div><div><br></div><div>Cheers,</div><div><br></div><div>-Alvaro</div><br><div><div>On May 31, 2011, at 2:37 PM, Alexander Kuleshov wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Thank you all. I build it with python 2.6.<br><br>Now i have 2 question:<br><br>1) How can i use it in my erlang code? I must to user<br>rabbitmq-erlang-client? or something else?<br><br>I build rabbitmq-erlang-client from github git. I put in my code:<br><br>-include("amqp_client.hrl").<br><br>But get error:<br><br>./test.erl:10: can't find include file "amqp_client.hrl"<br><br>2) How can i install rabbitmq-server. I build it with make. Them i try<br>to make install:<br><br>make install<br>Please set TARGET_DIR.<br>Please set SBIN_DIR.<br>Please set MAN_DIR.<br>make: *** [install_dirs] Error 1<br><br><br>Thank you.<br>_______________________________________________<br>rabbitmq-discuss mailing list<br><a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss<br></div></blockquote></div><br><div>
<div>Sent form my Nokia 1100</div><div><br></div><br class="Apple-interchange-newline">
</div>
<br></body></html>