読者です 読者をやめる 読者になる 読者になる

マカフィーいれると/usr/local のパーミッションが変更される

MacBookAir
MBA20120331:~ guutara$ brew doctor
Warning: The /usr/local directory is not writable.
Even if this directory was writable when you installed Homebrew, other
software may change permissions on this directory. Some versions of the
"InstantOn" component of Airfoil are known to do this.

You should probably change the ownership and permissions of /usr/local
back to your user account.


マカフィーをいれると、こうなってしまうので、直す。

MBA20120331:~ guutara$ ls -l /usr
total 4
drwxr-xr-x    8 root wheel   272  9 22  2013 X11
lrwxr-xr-x    1 root wheel     3  9 22  2013 X11R6 -> X11
drwxr-xr-x 1069 root wheel 36346  4 23 15:06 bin
drwxr-xr-x  288 root wheel  9792 11 28 17:29 include
drwxr-xr-x  344 root wheel 11696  4 23 15:06 lib
drwxr-xr-x  143 root wheel  4862  4 23 15:07 libexec
drwxr-xr-x    7 root wheel   238  1 28  2012 llvm-gcc-4.2
drwxr-xr-x   18 root wheel   612  3 29 12:13 local
drwxr-xr-x  259 root wheel  8806  4 23 15:05 sbin
drwxr-xr-x   66 root wheel  2244 11 28 17:29 share


755を、変更するのと、グループの変更。

sudo chmod 775 /usr/local
sudo chgrp admin /usr/local

upgrade したあと、update したら、エラーがでたので、対処。

Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master
MBA20120331:~ guutara$ cd $(brew --prefix)
MBA20120331:local guutara$ git fetch origin
remote: Counting objects: 345, done.
remote: Compressing objects: 100% (162/162), done.
remote: Total 345 (delta 130), reused 345 (delta 130)
Receiving objects: 100% (345/345), 124.79 KiB | 109.00 KiB/s, done.
Resolving deltas: 100% (130/130), done.
From https://github.com/Homebrew/homebrew
 * [new branch]      gh-pages   -> origin/gh-pages
 * [new branch]      go         -> origin/go
MBA20120331:local guutara$  git reset --hard origin/master
Checking out files: 100% (2295/2295), done.
HEAD is now at 355e06d Remove support for version "schemes", just pass version objects directly

MBA20120331:Versions guutara$ brew doctor
Your system is ready to brew.