无法在Mac上用pecl安装php-extension(错误提示:无法执行mkdir/usr/include/php/ext/msgpack) [英] failed to install php-extention with pecl on mac( error tips:fail to mkdir /usr/include/php/ext/msgpack)

查看:49
本文介绍了无法在Mac上用pecl安装php-extension(错误提示:无法执行mkdir/usr/include/php/ext/msgpack)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无论我用 sudo pecl install xxx 安装了什么PHP扩展,我都失败了,并得到了以下错误提示:

No matter what php extention i install with sudo pecl install xxx, i was failed and got the following error tips:

有人遇到同样的问题吗?

Is there anyone who had the same problem ?

推荐答案

如果要在该位置安装它,必须以 root 身份运行.如果您无法提升自己的权利,则需要将其安装在其他位置或要求管理员为您完成此操作.

You must run this as root if you want to install it in that location. If you cannot elevate your rights, then you need to install it elsewhere or ask your admin to do that for you.

这篇关于无法在Mac上用pecl安装php-extension(错误提示:无法执行mkdir/usr/include/php/ext/msgpack)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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