Xcode 10 on macOS High Sierra

ひととおりfeedlyとWeb siteの巡回が終わって暇になったので、brew doctorを走らせてみた。そうしたところ、次のWarningが表示された。

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: The following directories do not exist:
/usr/local/sbin
/usr/local/Frameworks

You should create these directories and change their ownership to your account.
  sudo mkdir -p /usr/local/sbin /usr/local/Frameworks
  sudo chown -R $(whoami) /usr/local/sbin /usr/local/Frameworks
git: error: unable to read SDK settings for '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk'
git: error: unable to read SDK settings for '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk'

Warning: Xcode alone is not sufficient on High Sierra.
Install the Command Line Tools:
  xcode-select --install


Warning: Broken symlinks were found. Remove them with `brew prune`:
  /usr/local/bin/scan
  /usr/local/share/man/man1/scan.1

まず、Xcodeを9から10にupdateしたときに、Xcodeを起動してcommand line toolをinstallさせたはずだが、ご不満とのことで、

Warning: Xcode alone is not sufficient on High Sierra.
Install the Command Line Tools:
  xcode-select --install

に従って、”xcode-select –install”でcommand line toolをreinstallし、再度”brew doctor”をしたところ、次のようにまだWarningが残った。

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: The following directories do not exist:
/usr/local/sbin
/usr/local/Frameworks

You should create these directories and change their ownership to your account.
  sudo mkdir -p /usr/local/sbin /usr/local/Frameworks
  sudo chown -R $(whoami) /usr/local/sbin /usr/local/Frameworks

Warning: Broken symlinks were found. Remove them with `brew prune`:
  /usr/local/bin/scan
  /usr/local/share/man/man1/scan.1

上から順に処置していく。

  • sudo mkdir -p /usr/local/sbin /usr/local/Frameworks (Frameworksのpath換え)
  • sudo chown -R $(whoami) /usr/local/sbin /usr/local/Frameworks (Frameworksのアクセス権変更)
  • brew prune (symbolic linkの張り替え)

そして、”brew doctor”で再確認させてWarningがなくなった。

広告