多用户配置中的Brew Doctor警告

时间:2015-01-03 18:52:33

标签: rvm homebrew

我在计算机上的两个用户帐户上安装RVM,我需要安装Homebrew。我已经成功安装了Homebrew,运行brew doctor,然后在第一个帐户上安装了RVM,没有任何障碍。切换到第二个,安装了Homebrew,但安装RVM符合此消息ERROR: '/usr/local/Cellar' is not writable - it is required for Homebrew, try 'brew doctor' to fix it!

在第二个帐户上运行brew doctor会出现几个警告:

Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!

Warning: /usr/local/etc isn't writable.

This can happen if you "sudo make install" software that isn't managed by
by Homebrew. If a formula tries to write a file to this directory, the
install will fail during the link step.

You should probably `chown` /usr/local/etc

Warning: /usr/local/include isn't writable.

This can happen if you "sudo make install" software that isn't managed by
by Homebrew. If a formula tries to write a file to this directory, the
install will fail during the link step.

You should probably `chown` /usr/local/include

Warning: /usr/local/lib isn't writable.

This can happen if you "sudo make install" software that isn't managed by
by Homebrew. If a formula tries to write a file to this directory, the
install will fail during the link step.

You should probably `chown` /usr/local/lib

Warning: /usr/local/lib/pkgconfig isn't writable.

This can happen if you "sudo make install" software that isn't managed by
by Homebrew. If a formula tries to write a file to this directory, the
install will fail during the link step.

You should probably `chown` /usr/local/lib/pkgconfig

Warning: /usr/local/share isn't writable.

This can happen if you "sudo make install" software that isn't managed by
by Homebrew. If a formula tries to write a file to this directory, the
install will fail during the link step.

You should probably `chown` /usr/local/share

Warning: Some directories in /usr/local/share/man aren't writable.
This can happen if you "sudo make install" software that isn't managed
by Homebrew. If a brew tries to add locale information to one of these
directories, then the install will fail during the link step.
You should probably `chown` them:

    /usr/local/share/man
    /usr/local/share/man/man1

1 个答案:

答案 0 :(得分:0)

Homebrew不适合多用户帐户使用。可以控制usr / local将其所有权更改为安装它的用户。所以它适用于你的第一个用户(安装了自制软件)但第二个用户失败了。

您可以找到其他安装说明来解决此here

您可以采取的另一种方法是在两个帐户之间共享usr / local的所有权,使两个用户成为同一组的成员,并且向usr / local提供组所有权可能有效。然而,这可能会产生一些奇怪的副作用。