从源代码构建rabbitmq

发布于 2024-11-10 13:53:45 字数 773 浏览 7 评论 0原文

我尝试从源代码构建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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

破晓 2024-11-17 13:53:45

你的问题可能是python版本的问题。
我能够使用 python 2.6.2 编译并安装rabbitMQ 2.4.1。

如果您使用 Solaris 并使用 pkgutil,获取 python 2.6.2 的命令将是

# 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

注意:我在 make 期间仍然看到这些错误消息。 rabbitMQ 2.4.1 的构建仍然成功。

$ 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 
...

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 
...
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文