Configure:error:Please Reinstall the LIBRABBITMQ distribution itself or (re) install LIBRABBITMQ development Package if I T available in your system
I didn't find a solution on the Internet.
While watching someone install AMQP, I found that there was less installation of a rabbitmq-c
Share the normal installation process below
① installation rabbitmq-c-0.7.1
No installation will prompt the above error
: https://github.com/alanxz/rabbitmq-c
I chose the latest version of 0.7.1
wget Https://github.com/alanxz/rabbitmq-c/releases/download/v0.7.1/rabbitmq-c-0.7.1.tar.gztar ZXF RABBITMQ-C-0.7.1.TAR.GZCD rabbitmq-c-0.7.1./configure--prefix=/usr/local/rabbitmq-c-0.7.1make && make Install
After success, see the following interface
② Installing AMQP
Https://pecl.php.net/package/amqp
My choice is 1.6.1.
wget Https://pecl.php.net/get/amqp-1.6.1.tgztar zxf amqp-1.6.1.tgzcd amqp-1.6.1/usr/local/php/bin/phpize./ Configure--with-php-config=/usr/local/php/bin/php-config--WITH-AMQP--with-librabbitmq-dir=/usr/local/ rabbitmq-c-0.7.1
Note: This is the /usr/local/rabbitmq-c-0.7.1
rabbitmq-c
same as the address installed above
Make && make install
The following address is logged after the installation is successful, and it is useful to configure the PHP module to be added
③ Adding PHP Modules
Vi/usr/local/php/etc/php.ini
Add a row last
Extension =/usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/amqp.so
Restart PHP
Service PHP-FPM Restart
④ Checking for AMQP installation
Use Phpinfo to check if AMQP is installed successfully
QQ Exchange Group: 136351212
View Original: http://www.phpsong.com/2223.html
RABBITMQ PHP Extended AMQP installation