failed to install php-extention with pecl on mac( error tips:fail to mkdir /usr/include/php/ext/msgpack)

爷,独闯天下 提交于 2021-02-08 12:15:42

问题


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 ?


回答1:


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.



来源:https://stackoverflow.com/questions/51484747/failed-to-install-php-extention-with-pecl-on-mac-error-tips-fail-to-mkdir-usr

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!