Homebrew 6.0でアップグレード時にy/nを聞かれるようになった場合の対処法

How to handle Homebrew 6.0's new interactive upgrade confirmation prompts

Homebrew 6.0 から、brew upgrade や brew install を実行すると、処理を続けるかどうか確認を求められるようになりました。 Copy ==> This action will upgrade X formulae. Proceed? [y/N] これまでは自動的に進んでいたため、戸惑った方も多いと思います。この記事では、状況に応じた対処法をまとめます。 [続きを読む]
カテゴリー: macOS  Tags: Homebrew macOS zsh 

dyld: Library not loaded: /usr/local/opt/jpeg/lib/libjpeg.8.dylib

久しぶりにHomebrewでUpgradeかけたら、下記のエラーが出た dyld: Library not loaded: /usr/local/opt/jpeg/lib/libjpeg.8.dylib ほぼ、下記の記事が参考になる https://qiita.com/maimai-swap/items/9ba6e5f877274079d755 私の環境の場合、jpegのバージョン8d,9bが混在しているようなので、下記のコマンドで戻せばOKでした。 [続きを読む]
カテゴリー: Mac  Tags: Homebrew 

Homebrewでwarning: Insecure world writableが出るようになった

ここ最近、Homebrewでまた下記のパーミッション警告が出るようになった。

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin13/rbconfig.rb:213: warning: Insecure world writable dir /usr/local in PATH, mode 040777

下記のコマンドで警告は出なくなった。

$ sudo chown $(whoami):admin /usr/local && sudo chown -R $(whoami):admin /usr/local
$ sudo chmod go-w /usr/local
$ brew update
カテゴリー: Mac  Tags: Homebrew 

homebrewのアップデートで失敗は、phinzeが原因

久しぶりにbrewの更新をかけたら、下記のエラー $ brew update ==> Tapping homebrew/core Cloning into '/usr/local/Library/Taps/homebrew/homebrew-core'... .... Error: Could not link phinze/cask manpages to: /usr/local/share/man/man1/brew-cask.1 Please delete these files and run `brew tap --repair`. どうやらphinzeは、しばらくメンテされていないようで、uptapしてあげれば良さそうです。 [続きを読む]
カテゴリー: Mac  Tags: Homebrew 

Error: uninitialized constant Formulary::HOMEBREW_CORE_FORMULA_REGEX

MacのHomebrewでアップデートをかけると、またもや下記のエラー Error: uninitialized constant Formulary::HOMEBREW_CORE_FORMULA_REGEX $ brew update Error: uninitialized constant Formulary::HOMEBREW_CORE_FORMULA_REGEX Please report this bug: https://git.io/brew-troubleshooting /usr/local/Library/Homebrew/formulary.rb:227:in loader_for' /usr/local/Library/Homebrew/formulary.rb:176:in factory' /usr/local/Library/Homebrew/cmd/update.rb:173:in block in report' /usr/local/Library/Homebrew/cmd/update.rb:159:in each_line' /usr/local/Library/Homebrew/cmd/update.rb:159:in report' /usr/local/Library/Homebrew/cmd/update.rb:24:in update' /usr/local/Library/brew.rb:140:in `<main>’ gitのトラブルシューティングを見ろとの事で、https://github.com/Homebrew/homebrew/issues/42553に書いてありました。 [続きを読む]
カテゴリー: Mac  Tags: Homebrew 

HomebrewでのXcodeライセンスの警告

久しぶりにbrewをアップグレードしようと思ったらxcodeライセンスの警告がでた。 $ brew upgrade Warning: You have not agreed to the Xcode license. Builds will fail! Agree to the license by opening Xcode.app or running: xcodebuild -license 仰せの通りに、sudoにて [続きを読む]
カテゴリー: Mac  Tags: Homebrew 

ffmpeg2をHomebrewでインストールする

Homebrewのffmpegパッケージではバージョン1.xと古いので、ffmpeg2をbrewでインストールする方法。 もし、ffmpeg1.xがインストールされていたら、アンインストールしておいた方がトラブル回避されると思います。 [続きを読む]
カテゴリー: Mac  Tags: Homebrew 

Homebrewのパスエラー

またまた、久々にHomebrewをアップデートしようとしたら、下記のエラー $ brew update error: Your local changes to the following files would be overwritten by merge: Library/Contributions/cmds/brew-pull.rb Library/Contributions/manpages/brew.1.md Please, commit your changes or stash them before you can merge. Aborting Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master [続きを読む]
カテゴリー: Mac  Tags: Homebrew 

Xcodeアップデート後にfuse4xエラー

Xcode 4.5.1にアップデート後に、Homebrewにて、いつもの如くbrew upgradeしたら、fuse4xで引っかかってしまいました。 ==> Summary /usr/local/Cellar/fuse4x-kext/0.9.2: 6 files, 284K ==> Upgrading fuse4x ==> Downloading https://github.com/fuse4x/fuse/tarball/fuse4x _0_9_2 [続きを読む]
カテゴリー: Mac  Tags: Homebrew 

HomebrewでFailure while executing:エラー

自宅のiMacで久々にHomebrewをUpdateしたら、下記のエラー。 $ brew update error: The following untracked working tree files would be overwritten by merge: Library/Aliases/twolame Library/Contributions/cmds/brew-test-bot/brew-test-bot.commit.html.erb Library/Contributions/cmds/brew-test-bot/brew-test-bot.css Library/Contributions/cmds/brew-test-bot/brew-test-bot.index.html.erb Library/Formula/aiccu.rb Library/Formula/aws-cloudsearch.rb Library/Formula/aws-sns-cli.rb Library/Formula/byacc.rb Library/Formula/cadubi.rb Library/Formula/cdpr.rb Library/Formula/cogl.rb Library/Formula/cutter.rb Library/Formula/debianutils.rb Library/Formula/dynamips.rb Library/Formula/fakeroot.rb Library/Formula/flickcurl.rb Library/Formula/freeswitch.rb Library/Formula/genstats.rb Library/Formula/gpsd.rb Library/Formula/gtk+3.rb Library/Formula/gzrt.rb Library/Formula/https_load.rb Library/Formula/hwloc.rb Library/Formula/hyperestraier.rb Library/Formula/ideviceinstaller.rb Library/Formula/jasmin.rb Library/Formula/jpeg-turbo.rb Library/Formula/libspiro.rb Library/Formula/libstfl.rb Library/Formula/logentries.rb Library/Formula/mame.rb Library/Formula/md.rb Library/Formula/mess.rb Library/Formula/mysql-cluster.rb Library/Formula/mysql-connector-odbc.rb Library/Formula/ophcrack.rb Library/Formula/opus-tools.rb Library/Formula/opus.rb Library/Formula/pam_yubico.rb Library/Formula/pathfinder.rb Library/Formula/qstat.rb Library/Formula/qxmpp.rb Library/Formula/rbenv-vars.rb Library/Formula/ren.rb Library/Formula/rom-tools.rb Library/Formula/rtpbreak.rb Library/Formula/txt2man.rb Library/Formula/valkyrie.rb Library/Formula/verilator.rb Library/Formula/visualnetkit.rb Library/Formula/voldemort.rb Library/Formula/wemux.rb Library/Formula/yydecode.rb Library/Formula/zsh-completions.rb Library/Homebrew/checksums.rb Library/Homebrew/macos.rb Library/Homebrew/macos/xcode.rb Library/Homebrew/macos/xquartz.rb Library/Homebrew/pkgconfig/libcurl.pc Library/Homebrew/pkgconfig/libexslt.pc Library/Homebrew/pkgconfig/libxml-2.0.pc Library/Homebrew/pkgconfig/libxslt.pc Library/Homebrew/test/test_bottles.rb Please move or remove them before you can merge. Aborting Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master [続きを読む]
カテゴリー: Mac  Tags: Homebrew