brew doctor, pyenv

brew doctor

pyenvを入れた後で久々に(おい)brew doctorをすると
pyenvに関するWarningを吐いた.

# brew doctor

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/KonoShinsaku/.pyenv/shims/curl-config
    /Users/KonoShinsaku/.pyenv/shims/freetype-config
    /Users/KonoShinsaku/.pyenv/shims/libdynd-config
    /Users/KonoShinsaku/.pyenv/shims/libpng-config
    /Users/KonoShinsaku/.pyenv/shims/libpng16-config
    /Users/KonoShinsaku/.pyenv/shims/python-config
    /Users/KonoShinsaku/.pyenv/shims/python2-config
    /Users/KonoShinsaku/.pyenv/shims/python2.7-config
    /Users/KonoShinsaku/.pyenv/shims/python3-config
    /Users/KonoShinsaku/.pyenv/shims/python3.4-config
    /Users/KonoShinsaku/.pyenv/shims/python3.4m-config
    /Users/KonoShinsaku/.pyenv/shims/python3.5-config
    /Users/KonoShinsaku/.pyenv/shims/python3.5m-config
    /Users/KonoShinsaku/.pyenv/shims/xml2-config
    /Users/KonoShinsaku/.pyenv/shims/xslt-config

PATHが通ってるところにconfigっていうファイルがあると./configureスクリプトが
自分の設定ファイルを勘違いしてしまうかも
らしい

PATHから外すとpyenvが使えなくなるので
brewを実行するときだけ該当のパスを外す.

zshrcに以下を記載.

# vim ~/.zshrc
alias brew="env PATH=${PATH/\/Users\/{user_name}\/\.phpenv\/shims:/} brew"

再読み込みをして,

# source ~/.zshrc

brew doctor

# brew doctor
Your system is ready to brew.

ok

# brew cleanup

を実行するとpyenvの中のanacondaに入れたライブラリが使えなくなる現象が起きていたが,
上記を行ったら直ったのでそういうことだと思う.

以上.

Go Top