自制软件安装权限问题 [英] Homebrew install permissions issue
本文介绍了自制软件安装权限问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在usr/local/
I have a standard homebrew install inside of usr/local/
当我尝试时:
Larson-2:~ larson$ brew install postgresql
Error: Cannot write to /usr/local/Cellar
当我使用sudo时:
Larson-2:~ larson$ sudo brew install postgresql
Cowardly refusing to `sudo brew install'
我在做什么错了?
推荐答案
您以某种方式对/usr/local/Cellar
拥有有限的权限. Brew不喜欢使用sudo进行安装,这就是它拒绝的原因.
You somehow have limited permissions to /usr/local/Cellar
. Brew doesn't like to install with sudo which is why it refuses.
检查权限:
ls -ld /usr/local/Cellar
打开它们进行写作:
sudo chmod a+w /usr/local/Cellar
这篇关于自制软件安装权限问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文