原文:https://www.php.cn/php-weizijiaocheng-375956.html
PHP安装amqp扩展 出现未装librabbitmq错误
1、安装rabbitmq-c-0.7.1
wget https:
//github.com/alanxz/rabbitmq-c/releases/download/v0.7.1/rabbitmq-c-0.7.1.tar.gz
tar zxf rabbitmq-c-0.7.1.tar.gz
./configure --prefix=/usr/local/rabbitmq-c-0.7.1
make && make install
2、安装amqp
wget https:
//pecl.php.net/get/amqp-1.6.1.tgz
tar zxf amqp-1.6.1.tgz
/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