homebrewを入れる
間違っている場所あったら優しく教えてね
いろんなサイトに書いてあるように
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" ~~~長々と~~~ ==> Installation successful!
コマンド実行したら長い処理が行われたが成功したっぽい
- brewにエラーがあるか確認するコマンド
~ $ 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 or file an issue; just ignore this. Thanks! 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: /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7-config /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7m-config /Library/Frameworks/Python.framework/Versions/3.7/bin/python3-config
Warningが出てきた
- PATH の通りに問題があるらしいので解消していく
echoコマンドを使ってPATHの設定先を確認する
~ $ echo $PATH /Library/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Xamarin Workbooks.app/Contents/SharedSupport/path-bin
- 僕の場合は
/Library/Frameworks/Python.framework/Versions/3.7/bin
が入っているのがおそらく原因の元となっている
エラーはまた今度