Erlang Mailing Lists

Author Message

<  RabbitMQ mailing list  ~  compatibility with legacy code

Guest
Posted: Fri Jan 08, 2010 10:20 am Reply with quote
Guest
Hi Tony,

I am trying to build this. I followed your links & instructions here.
configure still gives error saying it could not find AMQP spec file at
'/codegen/amqp-0.8.json'.

This directory is of course wrong because the file is actually at
/home/dinu/rabbitmq-codegen.

The variable $ac_abs_confdir is blank and that seems to be reason ... from
the configure script it looks like $ac_abs_confdir is expected to point to
the directory from where configure is being run. I don't know enough about
the autoconf tool chain to determine the root cause.

I next modified configure.ac file to point sibling_codegen_dir to the
correct directory ...

#sibling_codegen_dir="$ac_abs_confdir/../rabbitmq-codegen"
sibling_codegen_dir="/home/janus/dinu/rabbitmq-codegen"

After this change the configure script went through. But make still fails
...

[dinu@j4 rabbitmq-c]$ make
make all-recursive
make[1]: Entering directory `/home/dinu/rabbitmq-c'
Making all in librabbitmq
make[2]: Entering directory `/home/dinu/rabbitmq-c/librabbitmq'
PYTHONPATH=/home/dinu/rabbitmq-codegen python2.5 ./codegen.py header
/home/dinu/rabbitmq-codegen/amqp-0.8.json amqp_framing.h
/bin/sh: python2.5: command not found
make[2]: *** [amqp_framing.h] Error 127
make[2]: Leaving directory `/home/dinu/rabbitmq-c/librabbitmq'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dinu/rabbitmq-c'
make: *** [all] Error 2

I don't have python2.5. what is there on my machine is python2.3.

I am using RHEL 4.8 64 bit. Does the library expect some other distribution?
5.x?

I will try by modifying the script files ... but if you can provide some
pointers it would be good.

Regards,
Dinabandhu


Tony Garnock-Jones-2 wrote:
>
> Hi Jim,
>
> Jim Irrer wrote:
>> checking location of AMQP codegen directory... configure: error: could
>> not find AMQP spec file at "'/codegen/amqp-0.9.1.json'"
>
> The MD5sum is correct, b50fd568311a052a45157631ba17c2b5, but are you
> sure you're really building the one you just downloaded? For me, using
> the file with the MD5sum you provided, I get:
>
> checking location of AMQP codegen directory... configure: error: could
> not find AMQP spec file at
> "'/Users/tonyg/qq/rabbitmq-c-default/codegen/amqp-0.8.json'"
>
> Note the 0.8 version number.
>
>> Am I supposed to get that file from somewhere else, or should it be in
>> the tarball?
>
> You should retrieve rabbitmq-codegen as well. Sorry for the incomplete
> instructions, I really must write this up properly and check it in.
> Here's a complete recipe for building the C client and examples, on the
> 0-8 branch.
>
> curl http://hg.rabbitmq.com/rabbitmq-codegen/archive/default.tar.gz\
> | tar -zxf -
> curl http://hg.rabbitmq.com/rabbitmq-c/archive/default.tar.gz\
> | tar -zxf -
> mv rabbitmq-codegen-default rabbitmq-codegen
> mv rabbitmq-c-default rabbitmq-c
> cd rabbitmq-c
> autoreconf -i
> ./configure
> make
>
> Alternatively, if you have mercurial installed:
>
> hg clone http://hg.rabbitmq.com/rabbitmq-codegen
> hg clone http://hg.rabbitmq.com/rabbitmq-c
> cd rabbitmq-c
> autoreconf -i
> ./configure
> make
>
>> Also, I have doubts that this will work anyway, because the RabbitMQ
>> server
>> is running at version 0.8, so it won't be compatible with this client.
>
> The "default" branches of both the C client and the server are for 0-8,
> and do work together.
>
> Cheers,
> Tony
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss@lists.rabbitmq.com
> http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
>

--
View this message in context: http://old.nabble.com/compatibility-with-legacy-code-tp26197670p27073885.html
Sent from the RabbitMQ mailing list archive at Nabble.com.


_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Post received from mailinglist
Guest
Posted: Mon Jan 11, 2010 11:31 am Reply with quote
Guest
Dinabandhu

How are you getting on? Were you able to get the C client working?

alexis


On Fri, Jan 8, 2010 at 10:18 AM, Dinabandhu
<dinabandhu.mitra@tecnotree.com> wrote:
>
> Hi Tony,
>
> I am trying to build this. I followed your links & instructions here.
> configure still gives error saying it could not find AMQP spec file at
> '/codegen/amqp-0.8.json'.
>
> This directory is of course wrong because the file is actually at
> /home/dinu/rabbitmq-codegen.
>
> The variable $ac_abs_confdir is blank and that seems to be reason ... from
> the configure script it looks like $ac_abs_confdir is expected to point to
> the directory from where configure is being run. I don't know enough about
> the autoconf tool chain to determine the root cause.
>
> I next modified configure.ac file to point sibling_codegen_dir to the
> correct directory ...
>
> #sibling_codegen_dir="$ac_abs_confdir/../rabbitmq-codegen"
> sibling_codegen_dir="/home/janus/dinu/rabbitmq-codegen"
>
> After this change the configure script went through. But make still fails
> ...
>
> [dinu@j4 rabbitmq-c]$ make
> make
Guest
Posted: Mon Jan 11, 2010 3:35 pm Reply with quote
Guest
Hi Alexis,

Yes Smile. At least managed to compile. Not tested though as yet.

This is complete set of steps that I followed ... it should (hopefully) work for anyone using RHEL 4.8

1. Downloaded rabbitmq-codegen from http://hg.rabbitmq.com/rabbitmq-codegen/archive/default.tar.gz
2. Downloaded rabbitmq-c from http://hg.rabbitmq.com/rabbitmq-c/archive/default.tar.gz
3. Copied both to /home/dinu [my home directory].
4. Download and install simplejson 2.0.5. from http://pypi.python.org/pypi/simplejson/2.0.5 .
[The current latest version 2.0.9 is dependent on Python 2.4+ and I don't know if it will
work on RHEL 4.8 which comes with python 2.3+.]
5. tar -xvzf rabbitmq-c-default.tar.gz
6. tar -xvzf rabbitmq-codegen-default.tar.gz
7. mv rabbitmq-c-default rabbitmq-c
8. mv rabbitmq-codegen-default rabbitmq-codegen
9. cd rabbitmq-c
10. Edit "configure.ac" file and make the following changes
#sibling_codegen_dir="$ac_abs_confdir/../rabbitmq-codegen"
sibling_codegen_dir="/home/dinu/rabbitmq-codegen"
Note that this step was required in my environment. But that may be due
to something broken in the server I am using and may not be necessary for everyone.
11. autoreconf -i
12. ./configure
13. Edit librabbitmq/Makefile* (three files) and make the following modification in each
#PYTHON=python2.5
PYTHON=python
14. make
15. make install [I logged in as root to do the install but may not be necessary]

Lastly, for people like me, for whom the word "python" relates only to a large serpent Smile,
this is how I built simplejson -

1. Download simplejson 2.0.5 source from http://pypi.python.org/pypi/simplejson/2.0.5
2. tar -xvzf simplejson-2.0.5.tar.gz
3. cd simplejson-2.0.5
4. python ez_setup.py [I am not sure if this is necessary but I did this]
5. python setup.py build
6. python setup.py install
7. I did above steps as root user.

As of now, the library seems to have built and installed correctly ... i.e. I can see

/usr/local/lib/librabbitmq.*
/usr/local/bin/amqp_* [I guess example binaries]
/usr/local/include/amqp*.h

I will test the installation and keep you posted.

Regards,
Dinabandhu

> -----Original Message-----
> From: Alexis Richardson [mailto:alexis.richardson@gmail.com]
> Sent: Monday, January 11, 2010 5:00 PM
> To: Dinabandhu Mitra
> Cc: rabbitmq-discuss@lists.rabbitmq.com
> Subject: Re: [rabbitmq-discuss] compatibility with legacy code
>
> Dinabandhu
>
> How are you getting on? Were you able to get the C client working?
>
> alexis
>
>
> On Fri, Jan 8, 2010 at 10:18 AM, Dinabandhu
> <dinabandhu.mitra@tecnotree.com> wrote:
> >
> > Hi Tony,
> >
> > I am trying to build this. I followed your links & instructions here.
> > configure still gives error saying it could not find AMQP spec file
> at
> > '/codegen/amqp-0.8.json'.
> >
> > This directory is of course wrong because the file is actually at
> > /home/dinu/rabbitmq-codegen.
> >
> > The variable $ac_abs_confdir is blank and that seems to be reason ...
> from
> > the configure script it looks like $ac_abs_confdir is expected to
> point to
> > the directory from where configure is being run. I don't know enough
> about
> > the autoconf tool chain to determine the root cause.
> >
> > I next modified configure.ac file to point sibling_codegen_dir to the
> > correct directory ...
> >
> > #sibling_codegen_dir="$ac_abs_confdir/../rabbitmq-codegen"
> > sibling_codegen_dir="/home/janus/dinu/rabbitmq-codegen"
> >
> > After this change the configure script went through. But make still
> fails
> > ...
> >
> > [dinu@j4 rabbitmq-c]$ make
> > make
Guest
Posted: Tue Jan 12, 2010 5:51 am Reply with quote
Guest
Hi,

The sample programs are running. I plan to code a thin C++ wrapper over the C API and try it out.

Regards,
Dinabandhu

> -----Original Message-----
> From: Alexis Richardson [mailto:alexis.richardson@gmail.com]
> Sent: Monday, January 11, 2010 9:44 PM
> To: Dinabandhu Mitra
> Subject: Re: [rabbitmq-discuss] compatibility with legacy code
>
> Great!
>
> On Mon, Jan 11, 2010 at 3:34 PM, Dinabandhu Mitra
> <Dinabandhu.Mitra@tecnotree.com> wrote:
> > Hi Alexis,
> >
> > Yes Smile. At least managed to compile. Not tested though as yet.
> >
> > This is complete set of steps that I followed ... it should
> (hopefully) work for anyone using RHEL 4.8
> >
> > 1. Downloaded rabbitmq-codegen from http://hg.rabbitmq.com/rabbitmq-
> codegen/archive/default.tar.gz
> > 2. Downloaded rabbitmq-c from http://hg.rabbitmq.com/rabbitmq-
> c/archive/default.tar.gz
> > 3. Copied both to /home/dinu [my home directory].
> > 4. Download and install simplejson 2.0.5. from
> http://pypi.python.org/pypi/simplejson/2.0.5 .
> >
wuji
Posted: Tue Sep 18, 2012 6:35 am Reply with quote
User Joined: 10 Aug 2012 Posts: 654
the expense of our villain, Rex, and not at the the cheap authentic jordans the expense of those suffering from the disease."The joke, "From
man to another, I hope you get Lou Gehrig's disease," disease," cheap replica designer *beep* disease," shocked movie-going patients and advocates, who say it crossed
line."I didn't expect to go to a movie and sit sit cheap authentic jordans sit with an audience laughing at the expense of people
ALS," said Randy Pipkin, who was diagnosed in 2005. "I "I [h4]replica designer bags for sale[/h4] "I think the message this film sends out is a
slap in the face to people dying from this horrific horrific [h4]authentic jordans[/h4] horrific disease."Lou Gehrig's disease, also known as ALS, progressively robs
of their ability to move, speak, eat and breathe. There There authentic jordans There is currently no cure.The punch line prompted an online
urging MacFarlane to apologize and donate $200,000 of the movie's movie's replica designer *beep* movie's proceedings to ALS research."The thing that Mr. MacFarlane and
fail to realize is that ALS sufferers are some of of [h4]cheap authentic jordans[/h4] of the kindest, compassionate, thoughtful, and loving individuals one will
View user's profile Send private message
mbtshoes88
Posted: Wed Sep 19, 2012 7:51 am Reply with quote
User Joined: 18 Sep 2012 Posts: 30
Combine it with black or brown Cheap Armani Watches shoes, even white if you want to look different. Replica Armani Watches Standard blue generally means navy blue and Emporio Armani not any other paler shades of blue that will look odd. Classic Gray: Can be worn for different occasions and this will make even ladies turn their heads to notice you. Grays also look imposing Cheap Armani Shoes with different stripes and patterns classic gray suits are the hallmark of a gentleman. Cheap Georgio Armani Basic Black: The favorite suit of many well-dressed men and goes well Armani Online with a good white shirt. If you Armani Outlet can afford only one suit, Armani Suits then prefer this versatile Basis Black. As a fourth choice, you can select any of the above three with pinstripes. Cheap Armani Online Men Cheap Armani of average physical build Cheap Emporio Armani can choose either single-breasted or double-breasted Georgio Armani jackets. Double-breasted jackets are intended for slim men so that their leanness is not too visible and single-breasted jackets are meant for the stout to somewhat hide their obesity. Choose the jacket style Armani Sale that best suits your build. fmzds120823 The jackets must be of perfect fit and cause no wrinkles when you button them up. As far as possible, shoulder pads should be avoided and your tailor should guide you in Cheap Armani Suits this regard. You must now choose a trouser style although most men do not attach much Cheap Amarni EA7 importance to trousers and accept any pants that come with a jacket. When you discuss trousers, you need to worry about waist, drape, belt-loops, posterior-hugging, crotch-dangling, and whether or not you need a watch pocket. The best way to judge a pair of pants is to ask “Will I be able to wear these pants without the jacket and still look fine?” If the answer is Cheap Armani Outlet yes, then the pant is of perfect style and fit. Sometimes it is good to heed to the advice of a salesman and buy two pants for the same jacket. The idea is you can alternate pants with the jacket so they wear evenly over time. There may be occasions you may wear the pants minus Armani Shirts the jacket, it Cheap Armani Sale is always prudent to have a back-up pair.
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum