从源代码构建rabbitmq
我尝试从源代码构建rabbitmq-server-2.4.1。但出现错误:
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.
我使用 python 2.7.1
我该如何修复它?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你的问题可能是python版本的问题。
我能够使用 python 2.6.2 编译并安装rabbitMQ 2.4.1。
如果您使用 Solaris 并使用 pkgutil,获取 python 2.6.2 的命令将是
注意:我在 make 期间仍然看到这些错误消息。 rabbitMQ 2.4.1 的构建仍然成功。
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
NOTE: I still saw these error messages during make. The build of rabbitMQ 2.4.1 still succeeded.