brewのdoctorにめちゃくちゃ怒られたので、修正した。



```
#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: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected dylibs:
    /usr/local/lib/libusb-1.0.0.dylib

Warning: Some installed formula are missing dependencies.
You should `brew install` the missing dependencies:

    brew install cairo czmq glib gobject-introspection harfbuzz icu4c libffi libsodium libtool openssl pango pixman zeromq

Run `brew missing` for more details.

Warning: /usr/bin occurs before /usr/local/bin
This means that system-provided programs will be used instead of those
provided by Homebrew. The following tools exist at both paths:

    ctags

Consider setting your PATH so that /usr/local/bin
occurs before /usr/bin. Here is a one-liner:
    echo export PATH='/usr/local/bin:$PATH' >> ~/.bash_profile

```

エラーですぎ。。。


##1

```
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected dylibs:
    /usr/local/lib/libusb-1.0.0.dylib
```

消す。

```
rm -rf /usr/local/lib/libusb-1.0.0.dylib
```

##2

```
Warning: Some installed formula are missing dependencies.
You should `brew install` the missing dependencies:

    brew install cairo czmq glib gobject-introspection harfbuzz icu4c libffi libsodium libtool openssl pango pixman zeromq

Run `brew missing` for more details.
```

入れる。

```
#brew install cairo czmq glib gobject-introspection harfbuzz icu4c libffi libsodium libtool openssl pango pixman zeromq
cairo: You can install XQuartz with:
  brew cask install xquartz
```

怒られた。なんじゃい。入れる。


```
#brew cask install xquartz
Unknown command: cask
```

またエラー。もういや。

入れる。

```
#brew install caskroom/cask/brew-cask
Cloning into '/usr/local/Library/Taps/caskroom/homebrew-cask'...
remote: Counting objects: 112149, done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 112149 (delta 4), reused 1 (delta 0)
Receiving objects: 100% (112149/112149), 31.19 MiB | 4.30 MiB/s, done.
Resolving deltas: 100% (73899/73899), done.
Checking connectivity... done.
Tapped 1 formula
==> Installing brew-cask from caskroom/homebrew-cask
==> Cloning https://github.com/caskroom/homebrew-cask.git
Cloning into '/Library/Caches/Homebrew/brew-cask--git'...
remote: Counting objects: 2634, done.
remote: Compressing objects: 100% (2529/2529), done.
remote: Total 2634 (delta 103), reused 787 (delta 88)
Receiving objects: 100% (2634/2634), 5.64 MiB | 1.58 MiB/s, done.
Resolving deltas: 100% (103/103), done.
Checking connectivity... done.
Note: checking out '50294ef0cee127d6c0ff53257adc20c85af5071d'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b new_branch_name

==> Checking out tag v0.51.1
```

入れる。

```
#brew cask install xquartz
==> We need to make Caskroom for the first time at /opt/homebrew-cask/Caskroom
==> We'll set permissions properly so we won't need sudo in the future
Password:
==> Downloading https://xquartz.macosforge.org/downloads/SL/XQuartz-2.7.7.dmg
######################################################################## 100.0%
==> Running installer for xquartz; your password may be necessary.
==> Package installers may write to any location; options such as --appdir are ignored.
^@^@==> installer: Package name is XQuartz 2.7.7
==> installer: Installing at base path /
==> installer: The install was successful.
?  xquartz staged at '/opt/homebrew-cask/Caskroom/xquartz/2.7.7' (64M)
```

入れる。

```
#brew install cairo czmq glib gobject-introspection harfbuzz icu4c libffi libsodium libtool openssl pango pixman zeromq

brew install cairo czmq glib gobject-introspection harfbuzz icu4c libffi libsodium libtool openssl pango pixman zeromq
==> Installing dependencies for cairo: libpng, freetype, pixman, gettext, libffi, glib
==> Installing cairo dependency: libpng
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/libpng-1.6.16.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libpng-1.6.16.yosemite.bottle.tar.gz
?  /usr/local/Cellar/libpng/1.6.16: 17 files, 1.3M
==> Installing cairo dependency: freetype
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/freetype-2.5.4.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring freetype-2.5.4.yosemite.bottle.tar.gz
?  /usr/local/Cellar/freetype/2.5.4: 60 files, 2.6M
==> Installing cairo dependency: pixman
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/pixman-0.32.6.yosemite.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring pixman-0.32.6.yosemite.bottle.1.tar.gz
?  /usr/local/Cellar/pixman/0.32.6: 11 files, 1.4M
==> Installing cairo dependency: gettext
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/gettext-0.19.3_1.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring gettext-0.19.3_1.yosemite.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.

Mac OS X provides similar software, and installing this software in
parallel can cause all kinds of trouble.

OS X provides the BSD gettext library and some software gets confused if both are in the library path.

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/gettext/lib
    CPPFLAGS: -I/usr/local/opt/gettext/include

==> Summary
?  /usr/local/Cellar/gettext/0.19.3_1: 1920 files, 21M
==> Installing cairo dependency: libffi
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/libffi-3.0.13.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libffi-3.0.13.yosemite.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.

Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.

Some formulae require a newer version of libffi.

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/libffi/lib

==> Summary
?  /usr/local/Cellar/libffi/3.0.13: 14 files, 412K
==> Installing cairo dependency: glib
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/glib-2.42.1.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring glib-2.42.1.yosemite.bottle.tar.gz
?  /usr/local/Cellar/glib/2.42.1: 410 files, 17M
==> Installing cairo
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/cairo-1.14.0.yosemite.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring cairo-1.14.0.yosemite.bottle.1.tar.gz
?  /usr/local/Cellar/cairo/1.14.0: 106 files, 6.4M
==> Installing dependencies for czmq: zeromq, libsodium
==> Installing czmq dependency: zeromq
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/zeromq-4.0.5_2.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring zeromq-4.0.5_2.yosemite.bottle.tar.gz
==> Caveats
To install the zmq gem on 10.6 with the system Ruby on a 64-bit machine,
you may need to do:

    ARCHFLAGS="-arch x86_64" gem install zmq -- --with-zmq-dir=/usr/local/opt/zeromq
==> Summary
?  /usr/local/Cellar/zeromq/4.0.5_2: 64 files, 2.8M
==> Installing czmq dependency: libsodium
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/libsodium-1.0.1.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libsodium-1.0.1.yosemite.bottle.tar.gz
?  /usr/local/Cellar/libsodium/1.0.1: 61 files, 1.1M
==> Installing czmq
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/czmq-2.2.0_1.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring czmq-2.2.0_1.yosemite.bottle.tar.gz
?  /usr/local/Cellar/czmq/2.2.0_1: 69 files, 1.0M
==> Installing dependencies for gobject-introspection: readline, sqlite, openssl, python
==> Installing gobject-introspection dependency: readline
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/readline-6.3.8.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring readline-6.3.8.yosemite.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.

Mac OS X provides similar software, and installing this software in
parallel can cause all kinds of trouble.

OS X provides the BSD libedit library, which shadows libreadline.
In order to prevent conflicts when programs look for libreadline we are
defaulting this GNU Readline installation to keg-only.

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/readline/lib
    CPPFLAGS: -I/usr/local/opt/readline/include

==> Summary
?  /usr/local/Cellar/readline/6.3.8: 40 files, 2.1M
==> Installing gobject-introspection dependency: sqlite
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/sqlite-3.8.7.4.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring sqlite-3.8.7.4.yosemite.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.

Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.

OS X provides an older sqlite3.

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/sqlite/lib
    CPPFLAGS: -I/usr/local/opt/sqlite/include

==> Summary
?  /usr/local/Cellar/sqlite/3.8.7.4: 9 files, 2.1M
==> Installing gobject-introspection dependency: openssl
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/openssl-1.0.1j_1.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring openssl-1.0.1j_1.yosemite.bottle.tar.gz
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
  /usr/local/etc/openssl/certs

and run
  /usr/local/opt/openssl/bin/c_rehash

This formula is keg-only, which means it was not symlinked into /usr/local.

Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.

Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/openssl/lib
    CPPFLAGS: -I/usr/local/opt/openssl/include

==> Summary
?  /usr/local/Cellar/openssl/1.0.1j_1: 431 files, 15M
==> Installing gobject-introspection dependency: python
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/python-2.7.9.yosemite.bottle.6.tar.gz
######################################################################## 100.0%
==> Pouring python-2.7.9.yosemite.bottle.6.tar.gz
==> Caveats
Setuptools and Pip have been installed. To update them
  pip install --upgrade setuptools
  pip install --upgrade pip

You can install Python packages with
  pip install <package>

They will install into the site-package directory
  /usr/local/lib/python2.7/site-packages

See: https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Homebrew-and-Python.md

.app bundles were installed.
Run `brew linkapps python` to symlink these to /Applications.
==> /usr/local/Cellar/python/2.7.9/bin/python -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/local/Cellar/python/2.7.9/bin --install-l
==> /usr/local/Cellar/python/2.7.9/bin/python -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/local/Cellar/python/2.7.9/bin --install-l
==> Summary
?  /usr/local/Cellar/python/2.7.9: 4743 files, 77M
==> Installing gobject-introspection
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/gobject-introspection-1.42.0.yosemite.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring gobject-introspection-1.42.0.yosemite.bottle.1.tar.gz
?  /usr/local/Cellar/gobject-introspection/1.42.0: 196 files, 10M
==> Installing harfbuzz dependency: icu4c
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/icu4c-54.1.yosemite.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring icu4c-54.1.yosemite.bottle.1.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.

Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.

OS X provides libicucore.dylib (but nothing else).

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/icu4c/lib
    CPPFLAGS: -I/usr/local/opt/icu4c/include

==> Summary
?  /usr/local/Cellar/icu4c/54.1: 242 files, 65M
==> Installing harfbuzz
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/harfbuzz-0.9.35_1.yosemite.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring harfbuzz-0.9.35_1.yosemite.bottle.1.tar.gz
?  /usr/local/Cellar/harfbuzz/0.9.35_1: 72 files, 2.9M
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/libtool-2.4.4.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libtool-2.4.4.yosemite.bottle.tar.gz
==> Caveats
In order to prevent conflicts with Apple's own libtool we have prepended a "g"
so, you have instead: glibtool and glibtoolize.
==> Summary
?  /usr/local/Cellar/libtool/2.4.4: 69 files, 3.8M
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/pango-1.36.8.yosemite.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring pango-1.36.8.yosemite.bottle.1.tar.gz
?  /usr/local/Cellar/pango/1.36.8: 132 files, 4.8M
```

##3
書く。

```.zshrc
export PATH='/usr/local/bin:$PATH'

```

##よーし、もっかい。brew doctor。

```
#brew doctor

Warning: Broken symlinks were found. Remove them with `brew prune`:
  /usr/local/lib/libusb-1.0.dylib

Warning: /usr/bin occurs before /usr/local/bin
This means that system-provided programs will be used instead of those
provided by Homebrew. The following tools exist at both paths:

    2to3
    2to3-2.7
    ctags
    easy_install
    easy_install-2.7
    idle
    idle2.7
    makecert
    pydoc
    pydoc2.7
    python
    python-config
    python2.7
    python2.7-config
    pythonw
    pythonw2.7
    smtpd.py
    smtpd2.7.py

Consider setting your PATH so that /usr/local/bin
occurs before /usr/bin. Here is a one-liner:
    echo export PATH='/usr/local/bin:$PATH' >> ~/.bash_profile

```

まだでるんかい。

##1
打つ。

```
#brew prune
Pruned 0 dead formulae
Tapped 2 formulae
Pruned 1 symbolic links and 2 directories from /usr/local
```

##2
書き方間違えていたみたい。書く。

```
echo export PATH='/usr/local/bin:$PATH' >> ~/.zshrc
```


##試す！！！　brew doctor!

```
brew doctor
Your system is ready to brew.
```

やっぽい！

疲れた。。。