rabbitmq 安装的坑。

其他的都还好。 主要是。rabbitmq-c 的安装。 v0.9版本的没有提供  tar.gz的源码包
这里下载rabbitmq-c-0.8.0.tar.gz
https://github.com/alanxz/rabbitmq-c/releases/download/v0.8.0/rabbitmq-c-0.8.0.tar.gz

tar -zxvf rabbitmq-c-0.8.0.tar.gz
cd rabbitmq-c-0.8.0
./configure --prefix=/usr/local/rabbitmq-c
make && make install
接下来的是amqp php扩展
cd amqp-1.9.3
phpize

./configure --with-php-config=/usr/local/php/bin/php-config

这里报错了。 

checking for amqp using pkg-config... configure: error: librabbitmq not found
需要制定相应的库
./configure --with-php-config=/usr/local/php/bin/php-config --with-amqp --with-librabbitmq-dir=/usr/local/rabbitmq-c
make && make install

猜你喜欢

转载自blog.csdn.net/u010320371/article/details/80659375