更新时间:2023-01-14 22:18:45
首先将brewmq-c与brew安装在一起:
First install rabbitmq-c with brew:
brew search librabbitmq
No formula or cask found for "librabbitmq".
Closed pull requests:
Add rabbitmq-c (aka librabbitmq) formula (https://github.com/Homebrew/legacy-homebrew/pull/13437)
brew install rabbitmq-c
然后使用pecl安装amqp:
Then install amqp with pecl:
pecl install amqp
设置librabbitmq的路径:
Set the path to librabbitmq:
Set the path to librabbitmq install prefix [autodetect] : /usr/local/Cellar/rabbitmq-c/0.9.0
验证是否已安装amqp:
Verify that amqp is now installed:
php -i|grep amqp