我刚刚从Snow Leopard升级到Lion,并尝试安装Homebrew。但是,安装后,我brew doctor
按照安装说明运行,并看到一系列错误,表明/ usr / local目录不可写。例如:
Error: /usr/local/share isn't writable.
This can happen if you "sudo make install" software that isn't managed
by Homebrew.
If a brew tries to write a file to this directory, the install will
fail during the link step.
You should probably `chown` /usr/local/share
我得到了一堆目录:
You should probably `chown` /usr/local/include
You should probably `chown` /usr/local/share
You should probably `chown` /usr/local/share/man
我不知道为什么会出现此错误,因为我似乎是Unix组的成员,该组对这些目录具有写权限:
Mini:~ felciano$ ls -ld /usr/local/share
drwxrwxr-x 4 root admin 136 May 13 15:53 /usr/local/share
Mini:~ felciano$ whoami
felciano
Mini:~ felciano$ dscl . -read /Groups/admin GroupMembership
GroupMembership: root felciano
Mini:~ felciano$
我想念什么?
/usr/local
应该属于我。另外,我有可能写信brew doctor
抱怨的地方。还有其他想法吗?