LoginSignup
17
13

More than 5 years have passed since last update.

MacのOSをMojaveにアップデートした時のhomebrewの現状(2018/10/11現在)

Posted at

OSのアップグレードがあると、色々なツールの再設定が必要になったりとして大変なので、しばらく様子を伺っていたのですが、新しい物好きの自分はもう耐えきれなくなったのでアップデートしました!

今回はMojaveにしたことでhomebrewが使えなくなるのが一番怖いと思うので現状の挙動について書いておきます!

動作環境

  • macOS Mojave 10.14

各コマンドを実行

brew doctor

はい!とりあえず状態を知るのに一番てっとりばやいbrew doctorですね。

Terminal
$ 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: You are using macOS 10.14.
We do not provide support for this pre-release version.
You will encounter build failures and other breakages.
Please create pull-requests instead of asking for help on Homebrew's
GitHub, Discourse, Twitter or IRC. As you are running this pre-release version,
you are responsible for resolving any issues you experience.

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

やはりWarningは出ますね...
でもエラーが出てないだけ救いですね!!

内容的には1つ目は、このバージョンはサポートしてないよ!って感じですね...
2つ目はコマンドラインツールをインストールしてね!って感じですね!

1つ目に関してはどうしようもないので、コマンドラインツールをインストールしましょう!

Terminal
$ xcode-select --install

コマンドを実行するとインストールの同意が求められると思うので、同意してインストールを行います!

もう一度brew doctorをやってみます!

Terminal
$ 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: You are using macOS 10.14.
We do not provide support for this pre-release version.
You will encounter build failures and other breakages.
Please create pull-requests instead of asking for help on Homebrew's
GitHub, Discourse, Twitter or IRC. As you are running this pre-release version,
you are responsible for resolving any issues you experience.

いい感じですね!

brew update

次はhomebrewのアップデートコマンドです!

Terminal
$ brew update
Updated 4 taps (heroku/brew, homebrew/core, homebrew/cask and homebrew/services).

いたって正常に動作しました!

brew upgrade

続いてhomebrewでインストールしたパッケージもアップグレードできるコマンドを試してみます!

Terminal
$ brew upgrade
==> Upgrading 14 outdated packages:
ghostscript 9.24 -> 9.25, heroku/brew/heroku 7.14.4 -> 7.16.7, cmake 3.12.2 -> 3.12.3, goenv 1.21.0 -> 1.22.0, mbedtls 2.12.0 -> 2.13.0, node-build 3.0.18 -> 3.0.19, sqlite 3.24.0 -> 3.25.2, vagrant-completion 2.1.4 -> 2.1.5, heroku/brew/heroku-node 10.9.0 -> 10.11.0, pcre2 10.31 -> 10.32, node 10.10.0 -> 10.11.0, angular-cli 6.1.5 -> 6.2.3, zsh 5.6 -> 5.6.2, imagemagick 7.0.8-11_1 -> 7.0.8-12

流石に量が多いですね(^_^;)

中にはパスの再セットアップをしないといけないパッケージも多くありました!
とりあえず全部セットアップしてまたbrew doctorを打ってみましょう!

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

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

あら...
/usr/local/Frameworks /usr/local/sbinを作れとのことなので、とりあえず作りますか...

Terminal
$ sudo mkdir -p /usr/local/Frameworks /usr/local/sbin

$ sudo chown -R $(whoami) /usr/local/Frameworks /usr/local/sbin

これで再々チェック!!

Terminal
$ brew doctor
Your system is ready to brew.

いい感じですね!

ちょっとした雑談

今回は割とスムーズに対応できてよかったです!
macOS Sierraに移行した時は、トラウマレベルでエラーが出て環境を一掃したのが懐かしいです笑
今となってはその時しっかり環境を整えた事実と経験が生きたんだと前向きになって、今後のMojaveライフを満喫しようと思います!

17
13
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
17
13