[rabbitmq-discuss] Compile rabbitmq-erlang-client

Alvaro Videla videlalvaro at gmail.com
Sun Jun 12 07:54:49 BST 2011

The easiest way to compile it is by downloading the rabbitmq-public-umbrella. I think your error is due to not fulfilling some dependencies, probably the rabbitmq-server ones, or the rabbitmq-codegen.

$ hg co http://hg.rabbitmq.com/rabbitmq-public-umbrella/
$ cd rabbitmq-public-umbrella
$ make co #this will take a while
$ cd rabbitmq-erlang-client
$ make

Then you should get something like:

$ ls dist
amqp_client-0.0.0/      amqp_client-0.0.0.ez    rabbit_common-0.0.0/    rabbit_common-0.0.0.ez

Use those files as dependencies of your project. For example I decompress them inside the deps folder of my app, so I get something like:

$ ls deps/
amqp_client/             rabbit_common/     

Then I use the following include in my_app.hrl:


And finally I have a rebar.config file like this:

{erl_opts, [debug_info, fail_on_warning,
  {i, "include"},
  {i, "deps"}

Hope this helps.


On Jun 12, 2011, at 7:40 AM, Alexander Kuleshov wrote:

> Hello,
> I try to build from source rabbitmq-erlang-client package. But get error:
> make
> rm -f deps.mk
> echo src/amqp_auth_mechanisms.erl:src/amqp_channel.erl:src/amqp_channels_manager.erl:src/amqp_channel_sup.erl:src/amqp_channel_sup_sup.erl:src/amqp_client.erl:src/amqp_connection.erl:src/amqp_connection_sup.erl:src/amqp_connection_type_sup.erl:src/amqp_direct_connection.erl:src/amqp_gen_connection.erl:src/amqp_main_reader.erl:src/amqp_network_connection.erl:src/amqp_rpc_client.erl:src/amqp_rpc_server.erl:src/amqp_sup.erl:include/amqp_client.hrl:
> | escript ../rabbitmq-server/generate_deps deps.mk ebin
> escript  ../rabbitmq-server/generate_app rabbit_common.app.in
> rabbit_common.app src
> escript: exception error: {function_clause,
>                     [{local,main,
>                          [["rabbit_common.app.in","rabbit_common.app",
>                            "src"]]}]}
>  in function  escript:code_handler/4
>  in call from erl_eval:local_func/5
>  in call from escript:interpret/4
>  in call from escript:start/1
>  in call from init:start_it/1
>  in call from init:start_em/1
> make: *** [rabbit_common.app] Error 127
> How can i fix it?
> Thank you.
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss

Sent form my Nokia 1100

More information about the rabbitmq-discuss mailing list