のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

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: python is symlinked to python3
This will confuse build scripts and in general lead to subtle breakage.

Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:
 /Users/m_fujii/.pyenv/shims/curl-config
  /Users/m_fujii/.pyenv/shims/freetype-config
  /Users/m_fujii/.pyenv/shims/libdynd-config
  /Users/m_fujii/.pyenv/shims/libpng-config
  /Users/m_fujii/.pyenv/shims/libpng16-config
  /Users/m_fujii/.pyenv/shims/python-config
  /Users/m_fujii/.pyenv/shims/python2-config
  /Users/m_fujii/.pyenv/shims/python2.7-config
  /Users/m_fujii/.pyenv/shims/python3-config
  /Users/m_fujii/.pyenv/shims/python3.4-config
  /Users/m_fujii/.pyenv/shims/python3.4m-config
  /Users/m_fujii/.pyenv/shims/xml2-config
  /Users/m_fujii/.pyenv/shims/xslt-config

この記事のAliasを.bash_profileに追加したら、エラーが消えた。

$ brew doctor
Your system is ready to brew.

www.task-notes.com

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: python is symlinked to python3
This will confuse build scripts and in general lead to subtle breakage.

Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:
  /opt/local/bin/curl-config
  /opt/local/bin/icu-config
  /opt/local/bin/krb5-config
  /opt/local/bin/libusb-config
  /opt/local/bin/ncurses6-config
  /opt/local/bin/ncursesw6-config
  /opt/local/bin/pcre-config
  /opt/local/bin/python2.7-config
  /opt/local/bin/sdl-config
  /opt/local/bin/xml2-config
  /Users/m_fujii/.pyenv/shims/curl-config
  /Users/m_fujii/.pyenv/shims/freetype-config
  /Users/m_fujii/.pyenv/shims/libdynd-config
  /Users/m_fujii/.pyenv/shims/libpng-config
  /Users/m_fujii/.pyenv/shims/libpng16-config
  /Users/m_fujii/.pyenv/shims/python-config
  /Users/m_fujii/.pyenv/shims/python2-config
  /Users/m_fujii/.pyenv/shims/python2.7-config
  /Users/m_fujii/.pyenv/shims/python3-config
  /Users/m_fujii/.pyenv/shims/python3.4-config
  /Users/m_fujii/.pyenv/shims/python3.4m-config
  /Users/m_fujii/.pyenv/shims/xml2-config
  /Users/m_fujii/.pyenv/shims/xslt-config

Warning: You have MacPorts or Fink installed:
  /opt/local/bin/port

This can cause trouble. You don't have to uninstall them, but you may want to
temporarily move them out of the way, e.g.

  sudo mv /opt/local ~/macports

Warning: Your Xcode (7.3.1) is too outdated.
Please update to Xcode 8.2 (or delete it).
Xcode can be updated from the App Store.


Warning: Your Xcode (7.3.1) is outdated.
Please update to Xcode 8.2 (or delete it).
Xcode can be updated from the App Store.


Warning: Some installed formula are missing dependencies.
You should `brew install` the missing dependencies:
  brew install shared-mime-info

Run `brew missing` for more details.
$ brew missing
gdk-pixbuf: shared-mime-info
gtk+: shared-mime-info
gtkglext: shared-mime-info
open-scene-graph: shared-mime-info
 $ brew install shared-mime-info
Error: Your Xcode (7.3.1) is too outdated.
Please update to Xcode 8.2 (or delete it).
Xcode can be updated from the App Store.
$ xcode-select -p
/Applications/Xcode_7.3.1.app/Contents/Developer
$ sudo xcode-select  -s /Applications/Xcode.app/
 $ brew install shared-mime-info
==> Installing dependencies for shared-mime-info: gettext, pcre, glib
==> Installing shared-mime-info dependency: gettext
==> Downloading https://homebrew.bintray.com/bottles/gettext-0.19.8.1.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring gettext-0.19.8.1.sierra.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.

macOS 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.8.1: 1,934 files, 16.9M
==> Installing shared-mime-info dependency: pcre
==> Downloading https://homebrew.bintray.com/bottles/pcre-8.39.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring pcre-8.39.sierra.bottle.tar.gz
🍺  /usr/local/Cellar/pcre/8.39: 203 files, 5.4M
==> Installing shared-mime-info dependency: glib
==> Downloading https://homebrew.bintray.com/bottles/glib-2.50.2.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring glib-2.50.2.sierra.bottle.tar.gz
==> Using the sandbox
🍺  /usr/local/Cellar/glib/2.50.2: 427 files, 22.4M
==> Installing shared-mime-info 
==> Downloading https://homebrew.bintray.com/bottles/shared-mime-info-1.8.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring shared-mime-info-1.8.sierra.bottle.tar.gz
==> /usr/local/Cellar/shared-mime-info/1.8/bin/update-mime-database /usr/local/share/mime
🍺  /usr/local/Cellar/shared-mime-info/1.8: 844 files, 6.8M
$ 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: python is symlinked to python3
This will confuse build scripts and in general lead to subtle breakage.

Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:
  /opt/local/bin/curl-config
  /opt/local/bin/icu-config
  /opt/local/bin/krb5-config
  /opt/local/bin/libusb-config
  /opt/local/bin/ncurses6-config
  /opt/local/bin/ncursesw6-config
  /opt/local/bin/pcre-config
  /opt/local/bin/python2.7-config
  /opt/local/bin/sdl-config
  /opt/local/bin/xml2-config
  /Users/m_fujii/.pyenv/shims/curl-config
  /Users/m_fujii/.pyenv/shims/freetype-config
  /Users/m_fujii/.pyenv/shims/libdynd-config
  /Users/m_fujii/.pyenv/shims/libpng-config
  /Users/m_fujii/.pyenv/shims/libpng16-config
  /Users/m_fujii/.pyenv/shims/python-config
  /Users/m_fujii/.pyenv/shims/python2-config
  /Users/m_fujii/.pyenv/shims/python2.7-config
  /Users/m_fujii/.pyenv/shims/python3-config
  /Users/m_fujii/.pyenv/shims/python3.4-config
  /Users/m_fujii/.pyenv/shims/python3.4m-config
  /Users/m_fujii/.pyenv/shims/xml2-config
  /Users/m_fujii/.pyenv/shims/xslt-config

Warning: You have MacPorts or Fink installed:
  /opt/local/bin/port

This can cause trouble. You don't have to uninstall them, but you may want to
temporarily move them out of the way, e.g.

  sudo mv /opt/local ~/macports
Applications/ 02:55:57  
$ sudo mv /opt/local ~/macports
$ 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: python is symlinked to python3
This will confuse build scripts and in general lead to subtle breakage.

Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:
  /Users/m_fujii/.pyenv/shims/curl-config
  /Users/m_fujii/.pyenv/shims/freetype-config
  /Users/m_fujii/.pyenv/shims/libdynd-config
  /Users/m_fujii/.pyenv/shims/libpng-config
  /Users/m_fujii/.pyenv/shims/libpng16-config
  /Users/m_fujii/.pyenv/shims/python-config
  /Users/m_fujii/.pyenv/shims/python2-config
  /Users/m_fujii/.pyenv/shims/python2.7-config
  /Users/m_fujii/.pyenv/shims/python3-config
  /Users/m_fujii/.pyenv/shims/python3.4-config
  /Users/m_fujii/.pyenv/shims/python3.4m-config
  /Users/m_fujii/.pyenv/shims/xml2-config
  /Users/m_fujii/.pyenv/shims/xslt-config

brew config

$ brew config
HOMEBREW_VERSION: 1.1.4
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: 99f42146c06333f820f45ed1940c5487990e2b31
Last commit: 3 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 95256d78c3f5d0aab533cdf4625aafd5f4d74045
Core tap last commit: 54 minutes ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: quad-core 64-bit broadwell
Homebrew Ruby: 2.0.0-p648
Clang: 7.3 build 703
Git: 2.10.1                                                  => /opt/local/bin/git
Perl: /opt/local/bin/perl                            => /opt/local/bin/perl5.22
Python: /Users/m/.pyenv/shims/python => /Users/m/.pyenv/versions/anaconda3-2.3.0/bin/python3.4
Ruby: /usr/bin/ruby                                   => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
Java: 1.8.0_65
macOS: 10.12.2-x86_64
Xcode: 7.3.1                                              => /Applications/Xcode_7.3.1.app/Contents/Developer
CLT: 8.2.0.0.1.1480973914
X11: 2.7.9                                                   => /opt/X11
MacPorts/Fink: /opt/local/bin/port