You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by fadams <fr...@blueyonder.co.uk> on 2011/06/17 16:36:01 UTC

Perl clients?

Hello,
can anyone suggest the best approach for interfacing with Perl?

Clearly Qpid has a good many language binding, but Perl doesn't appear to be
one of them. Unfortunately one of our customers are primarily Perl based -
isn't that always the way :-)

I came across an old unmaintained Perl library a while back - I think it was
for RabbitMQ, but IIRC as well as being unmaintained it was written for an
old AMQP version so is unlikely to work with recent C++ brokers.

Unfortunately I'm really a C++/Java person and my familiarity with Perl and
Python is limited to basic tinkering, so if anyone has cracked this
particular chestnut code snippets would be *really* welcome.

Many thanks in advance

--
View this message in context: http://apache-qpid-users.2158936.n2.nabble.com/Perl-clients-tp6487336p6487336.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: Perl clients?

Posted by Cajus Pollmeier <ca...@naasa.net>.
Hi,

same here - the .pm does not find its way using the "install" target in 
0.10.

Is there a patch-less way to tell "configure" to place the perl 
libraries to another location than {prefix}/lib?

Best,
Cajus

On Fri, 15 Jul 2011 22:35:05 -0700 (PDT), fadams wrote:
> Hi all,
> I meant to say before, but this seems to be sorted now I've upgraded 
> to
> 0.10, I've been busy with other things so I've just got round to 
> playing
> with Perl.
>
> One thing I've noticed. The make install in
> ./qpid-0.10/cpp/bindings/qpid/perl seems to install the 
> libcqpid_perl.so and
> .la in my /usr/local/lib, but it doesn't seem to install 
> cqpid_perl.pm
> anywhere.
>
> Is that correct or have I missed something?
>
> I manually installed it under /usr/local/lib/perl/5.10.0 which is on 
> my @INC
> path and the Perl exampled worked fine, I was just curious if there 
> was a
> reason the .pm wasn't installed by the Makefile
>
> Cheers,
> Frase
>
> --
> View this message in context:
> 
> http://apache-qpid-users.2158936.n2.nabble.com/Perl-clients-tp6487336p6588880.html
> Sent from the Apache Qpid users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: Perl clients?

Posted by fadams <fr...@blueyonder.co.uk>.
Hi all,
I meant to say before, but this seems to be sorted now I've upgraded to
0.10, I've been busy with other things so I've just got round to playing
with Perl.

One thing I've noticed. The make install in
./qpid-0.10/cpp/bindings/qpid/perl seems to install the libcqpid_perl.so and
.la in my /usr/local/lib, but it doesn't seem to install cqpid_perl.pm
anywhere.

Is that correct or have I missed something?

I manually installed it under /usr/local/lib/perl/5.10.0 which is on my @INC
path and the Perl exampled worked fine, I was just curious if there was a
reason the .pm wasn't installed by the Makefile

Cheers,
Frase

--
View this message in context: http://apache-qpid-users.2158936.n2.nabble.com/Perl-clients-tp6487336p6588880.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: Perl clients? - perl-qpid RPM

Posted by Jose Pedro Oliveira <jp...@di.uminho.pt>.
On 2011-06-17 15:36, fadams wrote:
> Hello,
> can anyone suggest the best approach for interfacing with Perl?

Fraser,

If you have a recent Fedora (13+) or RHEL (6+) you can rebuild
the latest qpid-cpp SRPM from rawhide (qpid-cpp-0.10-3.fc16).
This particular release creates a subpackage - perl-qpid - for
the perl bindings.

Specfile patch

 * Bug 709948 - qpid-cpp: please package the perl bindings
   https://bugzilla.redhat.com/show_bug.cgi?id=709948

Latest qpid-cpp SRPM for rawhide (aka Fedora 16)

 * qpid-cpp-0.10-3.fc16
   http://koji.fedoraproject.org/koji/buildinfo?buildID=247767

Regards,
jpo
-- 
José Pedro Oliveira
* mailto:jpo@di.uminho.pt *

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: Perl clients?

Posted by Gordon Sim <gs...@redhat.com>.
On 06/17/2011 04:11 PM, fadams wrote:
> Out of curiosity is there a reason why the Perl wrapper is via svn and not
> on the main trunk - I see dotnet, ruby and python there, but not perl.

It is on the main trunk, just not at the top level (its under cpp).

That's because its a wrapper round the c++ API at present. There top 
level python project is a pure python implementation (supports the 
messaging api as well). The top level ruby project is a stale pure-ruby 
client (there is a ruby wrapper for the c++ client alongside the perl 
one now), similarly for the dotnet project.

I.e. the structure is really driven by convenience for development and 
probably needs revisited.

> BTW I'd like to say how much I appreciate your helpful - and scarily quick -
> responses. Your prolific contributions to this mailing list have truly
> helped me and undoubtedly many others. Many many thanks!!

You'll give me a big head! Likewise I really appreciate you and all the 
other users that take time to do real things with Qpid and ask questions 
or give feedback. It's the users of projects that make them successful, 
so many thanks to you also!



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: Perl clients?

Posted by fadams <fr...@blueyonder.co.uk>.
Thanks again Gordon - once again you come up trumps!

Out of curiosity is there a reason why the Perl wrapper is via svn and not
on the main trunk - I see dotnet, ruby and python there, but not perl.


BTW I'd like to say how much I appreciate your helpful - and scarily quick -
responses. Your prolific contributions to this mailing list have truly
helped me and undoubtedly many others. Many many thanks!!



Gordon Sim wrote:
> 
> 
> You might like to try the perl wrapper around the c++ API available from 
> svn:
> 
> https://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qpid/perl
> 
> There are some examples matching those in other languages:
> 
> https://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qpid/examples/perl
> 
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
> 


--
View this message in context: http://apache-qpid-users.2158936.n2.nabble.com/Perl-clients-tp6487336p6487468.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: Perl clients?

Posted by Gordon Sim <gs...@redhat.com>.
On 06/17/2011 03:36 PM, fadams wrote:
> Hello,
> can anyone suggest the best approach for interfacing with Perl?
>
> Clearly Qpid has a good many language binding, but Perl doesn't appear to be
> one of them. Unfortunately one of our customers are primarily Perl based -
> isn't that always the way :-)
>
> I came across an old unmaintained Perl library a while back - I think it was
> for RabbitMQ, but IIRC as well as being unmaintained it was written for an
> old AMQP version so is unlikely to work with recent C++ brokers.
>
> Unfortunately I'm really a C++/Java person and my familiarity with Perl and
> Python is limited to basic tinkering, so if anyone has cracked this
> particular chestnut code snippets would be *really* welcome.

You might like to try the perl wrapper around the c++ API available from 
svn:

https://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qpid/perl

There are some examples matching those in other languages:

https://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qpid/examples/perl

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org