Installing AMQP through PECL Installing AMQP through PECL php php

Installing AMQP through PECL


I had to install it applying following steps found here:

 # Download the rabbitmq-c library @ version 0-9-1 git clone git://github.com/alanxz/rabbitmq-c.git cd rabbitmq-c # Enable and update the codegen git submodule git submodule init git submodule update # Configure, compile and install autoreconf -i && ./configure && make && sudo make install

After that, sudo pecl install amqp did the work.

Using Ubuntu 12.10 with PHP 5.4.3.


this is what I did to install it successfully on debian wheezy:

apt-get install pkg-config librabbitmq-dev librabbitmq0git clone https://github.com/alanxz/rabbitmq-ccd rabbitmq-c/autoreconf -i./configuremakemake installpecl install amqp


The dev lib from repo is broken (as usually....). You have to clone (from GIT or HG) and make the lib, from php.net :

hg clone http://hg.rabbitmq.com/rabbitmq-c/rev/b01825ecc112 rabbitmq-ccd rabbitmq-c# Add the codegen requirement. To find the full list, go here: http://hg.rabbitmq.com/rabbitmq-codegen/tags# and copy the URL for the appropriate broker version.hg clone http://hg.rabbitmq.com/rabbitmq-codegen/rev/16bbcb711380 codegen# Configure, compile and installautoreconf -i && ./configure && make && sudo make install

Then run "pecl install amqp", worked in my ubuntu 12 with Php 5.3