问题
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