For more information about how to install RabbitMQ and its PHP extension in Ubuntu12.04, refer to this article: RabbitMQ and PHP (2) & mdash; related service installation and how to use PHP as the daemon mode to process messages, this article separately discusses how to install its PHP extension and report an error. When php expands amqp compilation, the following error is reported: checkingfor
For details about how to install RabbitMQ and PHP extension in Ubuntu 12.04, refer to this article: RabbitMQ and PHP (2)-related service installation and how to use PHP as the daemon mode to process messages, this article separately discusses how to install its PHP extension and report an error.
During the compilation of php extension amqp, the following error is reported:
checking for amqp files in default path... not foundconfigure: error: Please reinstall the librabbit-mq distribution
Solution:
git clone https://github.com/alanxz/rabbitmq-c rabbitmq-ccd rabbitmq-cgit clone https://github.com/alanxz/rabbitmq-codegen codegencp ./librabbitmq/amqp_framing.h /usr/local/include/
If configure is executed again, the following error occurs:
make: *** [amqp.lo] Error 1
Solution:
cp ./librabbitmq/amqp.h /usr/local/include/
Or error:
sh: make: not found
Solution:
apt-get install build-essential
Or error:
make: *** [amqp.la] Error 1
Solution:
apt-get install librabbitmq0ln -s /usr/lib/librabbitmq.so.0 /usr/local/lib/librabbitmq.so
If there are other errors, you can refer to the above solutions.
Finally, execute the installation:
sudo make & make install
There should be no problem.