Build a rabbit from the source

I am trying to build rabbitmq-server-2.4.1 from source. But get the error:

make python codegen.py body codegen/amqp-rabbitmq-0.9.1.json src/rabbit_framing_amqp_0_9_1.erl Traceback (most recent call last): File "codegen.py", line 492, in <module> "body": generateErl}) File "codegen/amqp_codegen.py", line 283, in do_main_dict execute(funcDict[function], sources, dest) File "codegen/amqp_codegen.py", line 262, in execute fn(amqp_specs) File "codegen.py", line 485, in generateErl genErl(AmqpSpec(specPath)) File "codegen/amqp_codegen.py", line 140, in __init__ self.major = self.spec['major-version'] KeyError: 'major-version' make: *** No rule to make target `deps.mk', needed by `ebin/bpqueue.beam'. Stop. 

I am using python 2.7.1

How can i fix this?

+4
source share
1 answer

Your problem may be the python version. I was able to compile and install rabbitMQ 2.4.1 using python 2.6.2.

If you use Solaris and use pkgutil, the command to get python 2.6.2 will be

  # My version of Sun OS (for comparison)
 $ uname -a 
 SunOS dev21 5.10 Generic_141445-09 i86pc i386 i86pc 

 # install python 2.6.2
 $ sudo pkgutil --install python-2.6.2, REV = 2009.08.06


NOTE. I still saw these error messages during make. The rabbitMQ 2.4.1 design still succeeded.

  $ make
 / bin / sh: python2.5: not found
 python codegen.py body codegen / amqp-rabbitmq-0.9.1.json src / rabbit_framing_amqp_0_9_1.erl 
 ...
+1
source

All Articles