You should probably `chown` them"とはどういう意味ですか?

Homebrewをインストールしたところです。brew doctor`を実行すると次のようになります。

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/de

"You should probably `chown' them"とは何ですか?誰かHomebrewが私に何をさせたいのか説明してくれませんか?

ソリューション

さて、chownはファイルの所有者を変更するためのunixコマンドです。

Homebrewは私に /usr/local/share/man/de の所有者を変更して、Homebrewが書き込めるようにしろと言っているのです。Homebrewは私と同じパーミッションで動作しているので、私自身をファイルの所有者にすることで問題は解決するはずです。

以下を実行すると、問題が解決します。

sudo chown $(whoami) /usr/local/share/man/de
解説 (3)

所有者と許諾権を確認する。

ls -la /usr/local/share/man/ | grep de; ls -la /usr/local/share/man/de/ | grep man1

変更してください。

/usr/bin/sudo /usr/bin/chgrp admin /usr/local/share/man/de /usr/local/share/man/de/man1

/usr/bin/sudo /bin/chmod g+rwx /usr/local/share/man/de /usr/local/share/man/de/man1

これで brew が問題なく使えるようになりました ;-)

Your system is ready to brew.
解説 (0)

chown はファイルの所有者を変更するために使用されます。この場合、sudo を参照すると、スーパーユーザーとしてインストールされたファイルは、一般ユーザーが実行すると homebrew からアクセスできなくなり、これらのオプションは役に立たなくなりますし、ファイルにアクセスしようとするとエラーや望ましくない結果になる可能性が高くなります。

解説 (0)