LoginSignup
1
1

More than 5 years have passed since last update.

brew installで404エラーが出た場合の対処

Posted at

brew installでインストール対象のファイルが404とかになった場合の対処方法をよく忘れるのでメモ。

brew editでformulaを開く

$ brew edit <target>

urlを別の生きているurlに書き換え。もしくは別途マニュアルでダウンロードして、file://のurlを指定する。

class Nite < Formula
  homepage 'https://onedrive.live.com/redir?resid=33B0FE678911B037%21573'
  #brewで取りに行くと404
  #url 'https://onedrive.live.com/download?resid=33B0FE678911B037%21573'
  url 'file:///Users/poly/Downloads/NITE-Bin-MacOSX-v1.5.2.21.tar.zip'
...
end
1
1
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
1
1