使用brew在Mac上安装amqp [英] installing amqp on mac with brew

查看:96
本文介绍了使用brew在Mac上安装amqp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用pecl为我的mac sierra安装 amqp .

I wanted to install amqp with pecl for my mac sierra.

我用brew安装php,并用 pecl install amqp 收到错误:使用pkg-config检查amqp ...配置:错误:找不到librabbitmq

I installed php with brew, with pecl install amqp I receive an error: checking for amqp using pkg-config... configure: error: librabbitmq not found

我在brew中安装了 librabbitmq-c 软件包,但仍然收到此错误.我认为某种程度上它与pkg-config不同步.

I installed with brew the librabbitmq-c package but I still get this error. I think it's somehow not synced with the pkg-config.

有人知道在这里做什么吗?

Does someone have an idea what to do here?

推荐答案

首先将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

这篇关于使用brew在Mac上安装amqp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆