How to install php amqp in ubuntu

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

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

he gives an error like this

Cannot find config.m4. Make sure you run '/ usr / bin / phpize' in the top-level source directory of the module

Please help me, my ubuntu environment

+7
source share
2 answers

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

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

UPDATE: this page is actually old, it has not been updated for a long time. You can take 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 phpize ./configure --with-amqp make sudo make install 

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

 extension=amqp.so 
+15
source

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

On Debian / Ubuntu, you can get them with:

 sudo apt-get install php5-dev 
+3
source

All Articles