[rabbitmq-discuss] erlang examples

Ciprian Dorin Craciun ciprian.craciun at gmail.com
Sat Nov 19 06:49:19 GMT 2011


On Fri, Nov 18, 2011 at 22:08, Sacha Molin <sacha.molin at evolope.se> wrote:
> Hi
> ,
>  I decidec to use rabbitmq for the first time, i got everything up and
> running, but when i tried the erlang examples i just got this error message:
>
> can't find include lib "amqp_client/include/amqp_
> client.hrl"
>
> any ideas how i can solve it and what makes it not find it ?
>
> best regards
> Sacha

    To run the erlang client examples, you need to build (or get it
built from the site) the `rabbitmq_erlang_client` "plugin". (I've just
barely found it on the site... Where did the link disappeared???)
       http://www.rabbitmq.com/releases/rabbitmq-erlang-client/v2.7.0/

    After that there are two ways:
    * quick and dirty: from the `amqp_client-xxx.ez` just take the
`amqp_client.hrl` (and any other referenced include files) and throw
them in your code folder (also replace all lines from `-include_lib
(".../amqp_client.hrl")." to just `-include ("amqp_client.hrl").`;
    * the correct way (?) put the `.ez` files in a folder and extract
(with `unzip`) them there (you should have a folder for each `.ez`
with the same name but without the extension, I don't remember if that
folder is in the `.ez` or you have to create it manually) (you can
remove then the `.ez` files), then export the environment variable
`ERL_LIBS` to point to that folder, and now you can run the compiler;

    Hope it helps. (I haven't tested it right now, but I use something similar.)
    Ciprian.


More information about the rabbitmq-discuss mailing list