Ubuntu12.04 problems and solutions for installing PHP extension of RabbitMQ

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.