简体   繁体   中英

Build rabbitmq from source

I try to build rabbitmq-server-2.4.1 from source. But get 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 use python 2.7.1

How can i fix it?

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 would 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 build of rabbitMQ 2.4.1 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 
...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM