1

I've clone the RabbitMQ repository opened as an Erlang project in Eclipse using the erlide.org plugin.

I don't know how to run the application, and I have 249 errors.

Please can someone explain how to make it run?

EDIT - Example of some Errors

Description Location Resource Path Type can't find include file "rabbit_framing.hrl" line 184 rabbit.erl /home/nicktune/dev/rabbitmq-public-umbrella/rabbitmq-server/src/rabbit.erl Erlang Problems

Description Location Resource Path Type function build_heartbeat_frame/0 undefined line 30 rabbit_binary_generator.erl /home/nicktune/dev/rabbitmq-public-umbrella/rabbitmq-server/src/rabbit_binary_generator.erl Erlang Problems

Description Location Resource Path Type record 'basic.ack' undefined line 1317 rabbit_tests.erl /home/nicktune/dev/rabbitmq-public-umbrella/rabbitmq-server/src/rabbit_tests.erl Erlang Problems

Nick
  • 1,845
  • 3
  • 15
  • 22
  • What are the first few errors you're getting? (You can edit the question and put them there; that will get better formatting.) – legoscia Aug 10 '12 at 13:23
  • Right, the include path is not getting set correctly for some reason. Someone who's more knowledgeable about Erlide should be able to tell how to fix it... – legoscia Aug 10 '12 at 14:26
  • Hm, actually, `rabbit_framing.hrl` is an autogenerated file, so it's quite possible that it isn't getting generated by however Erlide is building the project. Can you see `rabbit_framing.hrl` in the include directory? – legoscia Aug 10 '12 at 14:28
  • No, it is not inside the include directory. – Nick Aug 10 '12 at 14:52
  • 1
    I think it might be because I didn't clone the codegen repository – Nick Aug 10 '12 at 15:06

1 Answers1

0

RabbitMQ comes with Makefile that can generate the rabbit_framing.hrl you are missing (with GNU make). Just use make instead of erlide's compilation feature and you'll be fine.

Ivan Blinkov
  • 2,466
  • 15
  • 17