My days of...

生活のことなど、がんばろう

Mac OS X Catalina で、AnacondaとHomebrewの相性が良くないのと、Command Line Toolsのインストール

Macで、HomebrewとAnacondaの相性がよくないとのこと。

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:
//anaconda/bin/curl-config
//anaconda/bin/freetype-config
//anaconda/bin/libdynd-config
//anaconda/bin/libpng-config
//anaconda/bin/libpng16-config
//anaconda/bin/python3-config
//anaconda/bin/python3.5-config
//anaconda/bin/python3.5m-config
//anaconda/bin/xml2-config
//anaconda/bin/xslt-config
....

 brew doctorをすると、こんな感じのメッセージが流れたので、解決方法としてはこちらのサイトから。

yaritakunai.hatenablog.com

alias brew="env PATH=${PATH/${HOME}\/anaconda3\/bin:/} brew"

3番目の方法を.zshrcのAnacondaが自動で書き込んだ内容の直後の記入。
メッセージが表示されなくなりました。

他に、

Warning: A newer Command Line Tools release is available.
Update them from Software Update in System Preferences.

この文言も出ていたので、

xcode-select --install

としたところ、

xcode-select: error: command line tools are already installed, use “Software Update” to install updates

と出てすでにCommand Line Toolsはインストール済みとか。ちょっと困ったのだけれども表示されていたリンクhttps://developer.apple.com/download/more/)にアクセスして、
Command Line Tools for Xcode 11.3.dmgを直接ダウンロード、インストールしたらとりあえず解決。

なんだか相性がよくないとか、うまくアップデートできないとか、Mac OS X Catalinaはいまいちなのだろうか・・・?と不安。次のOSに期待の方がいいの?

 

退屈なことはPythonにやらせよう ―ノンプログラマーにもできる自動化処理プログラミング