Take the 2-minute tour ×

I am try to install amqp for php (Integrating PHP with RabbitMQ) using this http://code.google.com/p/php-amqp/.

after run phpize && ./configure --with-amqp && make && sudo make install

it give error like this


Please help me, my environment is ubuntu

share|improve this question

2 Answers 2

up vote 7 down vote accepted

You need to download the code for the PHP library from here: http://code.google.com/p/php-amqp/downloads/list

Then cd into that folder and run the command they tell you to run.

UPDATE: That page is actually an old page, they haven't updated it in a long time. You can grab the latest amqp from http://pecl.php.net/get/amqp:

wget http://pecl.php.net/get/amqp -O amqp.tar.gz
tar -zxvf amqp.tar.gz
cd amqp-1.0.7    # replace this with the current version
./configure --with-amqp
sudo make install

Then you'll need to add the following line to your php.ini file:

share|improve this answer

You are missing the required libraries and tools to compile a PHP extension.

On Debian/Ubuntu you can get them with:

sudo apt-get install php5-dev
share|improve this answer
Actually I've spent a whole day trying to install the extension in my production machine and I still didn't manage to install it. Why aren't there precompiled downloads of the extension for the most popular distros? It's absurd that I have to install a bunch of development tools in the production server just to be able to install one library. Now I'm stuck. –  Pedro Moreira Oct 30 at 0:17

Your Answer


