[rabbitmq-discuss] |Spam| Re: Compiling rabbitmq-c
Pieter de Zwart
pdezwart at rubiconproject.com
Mon Aug 16 18:44:45 BST 2010
Yup, python was the problem. Something between 2.5.2 and 2.5.4 was important
=)
Thanks guys,
Pieter
On 8/16/10 2:27 AM, "Alexandru Scvorţov" <alexandru at rabbitmq.com> wrote:
> Sorry, but I can't reproduce your problem.
>
> Running that exact sequence of commands works fine for me with both
> python-2.5.4 and python-2.6.5.
>
> What distribution are you using and could you try upgrading to a more
> recent version of Python?
>
>
> Alex
>
> On Sun, Aug 15, 2010 at 11:58:04PM -0700, Pieter de Zwart wrote:
>> > utility:~/workspace/rabbit$ hg clone
>> http://hg.rabbitmq.com/rabbitmq-codegen
>> > codegen-default
>> > requesting all changes
>> > adding changesets
>> > adding manifests
>> > adding file changes
>> > added 144 changesets with 127 changes to 20 files (+3 heads)
>> > updating working directory
>> > 10 files updated, 0 files merged, 0 files removed, 0 files unresolved
>> > utility:~/workspace/rabbit$ hg clone http://hg.rabbitmq.com/rabbitmq-c
>> > rabbitmq-c-default
>> > requesting all changes
>> > adding changesets
>> > adding manifests
>> > adding file changes
>> > added 176 changesets with 517 changes to 79 files (+2 heads)
>> > updating working directory
>> > 76 files updated, 0 files merged, 0 files removed, 0 files unresolved
>> > utility:~/workspace/rabbit$ cd rabbitmq-c-default/
>> > utility:~/workspace/rabbit/rabbitmq-c-default$ ln -s ../codegen-default
>> > codegen
>> > utility:~/workspace/rabbit/rabbitmq-c-default$ autoreconf -i
>> > configure.ac:3: installing `./missing'
>> > configure.ac:3: installing `./install-sh'
>> > examples/Makefile.am: installing `./depcomp'
>> > utility:~/workspace/rabbit/rabbitmq-c-default$ ./configure
>> > [configure succeeds]
>> > utility:~/workspace/rabbit/rabbitmq-c-default$ make
>> > make all-recursive
>> > make[1]: Entering directory
>> > `/home/pdezwart/workspace/rabbit/rabbitmq-c-default'
>> > Making all in librabbitmq
>> > make[2]: Entering directory
>> > `/home/pdezwart/workspace/rabbit/rabbitmq-c-default/librabbitmq'
>> > PYTHONPATH=/home/pdezwart/workspace/rabbit/rabbitmq-c-default/codegen
>> python
>> > ./codegen.py header
>> >
>> /home/pdezwart/workspace/rabbit/rabbitmq-c-default/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-default/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-default/codegen/amqp_codegen.py"
>> > , line 298, in do_main_dict
>> > execute(funcDict[function], sources, dest)
>> > File
>> >
>> "/home/pdezwart/workspace/rabbit/rabbitmq-c-default/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-default/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-default/librabbitmq'
>> > make[1]: *** [all-recursive] Error 1
>> > make[1]: Leaving directory
>> > `/home/pdezwart/workspace/rabbit/rabbitmq-c-default'
>> > make: *** [all] Error 2
>> >
>> >
>> > And:
>> > utility:~/workspace/rabbit/rabbitmq-c-default$ python --version
>> > Python 2.5.2
>> >
>> > Where is my screwup? =(
>> >
>> > Thanks,
>> > Pieter
>> >
>> >
>> > On 8/15/10 2:08 AM, "Alexandru Scvorţov" <alexandru at rabbitmq.com> wrote:
>> >
>>> > > Hi,
>>> > >
>>> > > Could you please try again with:
>>> > > * rabbitmq-codegen default, and
>>> > > * rabbimtq-c default.
>>> > >
>>> > > This should work and you give you a 0-8 client.
>>> > >
>>> > > Cheers,
>>> > > Alex
>>> > >
>>> > > On Sat, Aug 14, 2010 at 11:42:40PM -0700, Pieter de Zwart 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.jso
>>>> > >> n 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
>>> > >
>>> > >
>> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20100816/fd18f0ec/attachment.htm>
More information about the rabbitmq-discuss
mailing list