macos - 权限被拒绝 -/Library/Caches/Homebrew/Formula/nmap.brewing

标签 macos homebrew

我在我的 MacBook Pro (OSX 10.8.4) 上创建了一个新用户“dad”。 “爸爸”是一名管理员。我已经以“爸爸”身份成功安装了 Homebrew 程序。它之前已由其他用户安装。我做了:

sudo chown -R dad /usr/local/
cd /usr/local/
chmod -R 777 *

但是任何安装尝试,例如:

brew install nmap

给予:

Error: Permission denied - /Library/Caches/Homebrew/Formula/nmap.brewing

nmap.brewing 似乎不存在:

dad$ ls -l /usr/local/Library/Caches/Homebrew/Formula/nmap.brewing
ls: /usr/local/Library/Caches/Homebrew/Formula/nmap.brewing: No such file or directory

dad$ ls -l /Library/Caches/Homebrew/Formula/nmap.brewing
ls: /Library/Caches/Homebrew/Formula/nmap.brewing: No such file or directory

有什么想法吗?

最佳答案

已修复。

看来我需要取得/Library/Caches/Homebrew 的所有权

sudo chown -R $USER /Library/Caches/Homebrew/

关于macos - 权限被拒绝 -/Library/Caches/Homebrew/Formula/nmap.brewing,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17610417/

相关文章:

macos - Cocoa osx NSSharingServicePicker 设置默认电子邮件地址

ios - 在Windows系统上编写iOS应用的方法?

没有框架的 PHP 单元测试......可能吗?建议?

swift - 水平滚动 NSCollectionView 在调整窗口大小之前不会滚动

c - fork 后在子进程中设置 errno - OSX

linux - OpenSSL命令行解密打嗝

python - 在 Mac OS X Yosemite 上安装 Python3

git - 无法访问 'https://github.com/Homebrew/brew/' : LibreSSL SSL_connect

python - Python:导入OpenCV时出错

macos - 升级到osx优胜美地后Nginx损坏