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
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.
cd
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 :
php.ini
extension=amqp.so
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