Skip to content

Install PECL AMQP Extension for PHP on Centos 6

I ran into some issues recently getting the AMQP PECL extension running on my CentOS box. Find a quick explanation below on how to go about getting it working.

1. Download rabbitmq-c client library from

git clone git://
cd rabbitmq-c
git submodule init
git submodule update

2. Install the library

cd rabbitmq-c
autoreconf -i

If you receive error: installing `./config.guess' installing `./config.sub' installing `./install-sh' installing `./missing' Libtool library used but `LIBTOOL' is undefined   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'   to `' and run `aclocal' and `autoconf' again.   If `AC_PROG_LIBTOOL' is in `', make sure   its definition is in aclocal's search path. installing `./depcomp'
autoreconf: automake failed with exit status: 1

You will need to install lib tools and try again:

yum install libtools

Run make and make install

make install

Now we need to install AMQP from pecl

pecl install AMQP

This will create an shared object that needs to be included in your php.ini file. Find the extensions portal of the ini and add “”.

Posted in RabbitMQ.

0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

Some HTML is OK


(required, but never shared)

or, reply to this post via trackback.