[rabbitmq-discuss] Compiling rabbitmq-c

Scott Brooks scott at beamdog.com
Sun Aug 15 09:52:40 BST 2010


Maybe check your python version on something that old?  That step is
running a python script to generate some code, and if you've got an
old python it may not work properly.

Scott

On Sun, Aug 15, 2010 at 12:42 AM, Pieter de Zwart
<pdezwart at rubiconproject.com> wrote:
> Hey guys,
>
> I freely admit that I am an idiot, but I could use some help. I am trying to
> get some combination of rabbitmq-c and codegen to compile on my box (FC8 —
> old, I know,) and it wont behave. I am using
> http://hg.rabbitmq.com/rabbitmq-c/rev/ce1eaceaee94 (amqp_0_8 tag) and
> http://hg.rabbitmq.com/rabbitmq-codegen/rev/d1b197ff0c5d (rabbitmq_v_1_8_0)
> and I keep on getting:
>
> utility:~/workspace/rabbit/rabbitmq-c-0.8$ make
> make  all-recursive
> make[1]: Entering directory `/home/pdezwart/workspace/rabbit/rabbitmq-c-0.8'
> Making all in librabbitmq
> make[2]: Entering directory
> `/home/pdezwart/workspace/rabbit/rabbitmq-c-0.8/librabbitmq'
> PYTHONPATH=/home/pdezwart/workspace/rabbit/rabbitmq-c-0.8/codegen python
> ./codegen.py header
> /home/pdezwart/workspace/rabbit/rabbitmq-c-0.8/codegen/amqp-rabbitmq-0.8.json
> amqp_framing.h
> Traceback (most recent call last):
>   File "./codegen.py", line 490, in <module>
>     do_main(generateHrl, generateErl)
>   File
> "/home/pdezwart/workspace/rabbit/rabbitmq-c-0.8/codegen/amqp_codegen.py",
> line 263, in do_main
>     do_main_dict({"header": header_fn, "body": body_fn})
>   File
> "/home/pdezwart/workspace/rabbit/rabbitmq-c-0.8/codegen/amqp_codegen.py",
> line 298, in do_main_dict
>     execute(funcDict[function], sources, dest)
>   File
> "/home/pdezwart/workspace/rabbit/rabbitmq-c-0.8/codegen/amqp_codegen.py",
> line 277, in execute
>     fn(amqp_specs)
>   File "./codegen.py", line 487, in generateHrl
>     genHrl(AmqpSpec(specPath))
>   File
> "/home/pdezwart/workspace/rabbit/rabbitmq-c-0.8/codegen/amqp_codegen.py",
> line 155, in __init__
>     self.major = self.spec['major-version']
> KeyError: 'major-version'
> make[2]: *** [amqp_framing.h] Error 1
> make[2]: Leaving directory
> `/home/pdezwart/workspace/rabbit/rabbitmq-c-0.8/librabbitmq'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/pdezwart/workspace/rabbit/rabbitmq-c-0.8'
> make: *** [all] Error 2
>
> What am I doing wrong?! What is the current secret magic incantation?
>
> Thanks,
> Pieter
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
>


More information about the rabbitmq-discuss mailing list