4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Homebrewで「Error: Failed to download resource "texi2html"」に遭遇した

Last updated at Posted at 2015-12-20

Homebrewで「Error: Failed to download resource "texi2html"」に遭遇した

こういうシチュエーションだった

Homebrewを使ってmpv-player/mpvをインストールしようとしたパターン

やったこと

Homebrewをインストール

  1. Command Line Toolsをダウンロードしてインストール
  2. Homebrewをインストール
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  1. Homebrewの動作を確認
brew doctor
  1. お約束
brew update
brew install git

mpv-player/mpvをインストール

homebrew-mpvを参考に

「Error: Failed to download resource "texi2html"」に遭遇

brew tap mpv-player/mpv

==> Installing mpv-player/mpv/mpv dependency: texi2html
==> Downloading http://download.savannah.gnu.org/releases/texi2html/texi2html-5.0.tar.gz
==> Downloading from http://public.p-knowledge.co.jp/Savannah-nongnu-mirror//texi2html/texi2html-5.0.tar.gz

curl: (7) couldn't connect to host
Error: Failed to download resource "texi2html"
Download failed: http://public.p-knowledge.co.jp/Savannah-nongnu-mirror//texi2html/texi2html-5.0.tar.gz

brew で ffmpeg をインストールしようとしたら 404 エラーが出たを参考にして
/usr/local/Library/Formula/texi2html.rb
を修正

require 'formula'

class Texi2html < Formula
  homepage 'http://www.nongnu.org/texi2html/'
  #url 'http://download.savannah.gnu.org/releases/texi2html/texi2html-1.82.tar.gz'
  url 'http://download-mirror.savannah.gnu.org/releases/texi2html/texi2html-1.82.tar.gz'
  sha1 'e7bbe1197147566250abd5c456b94c8e37e0a81f'

  keg_only :provided_pre_mountain_lion

  def install
    system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}",
                          "--mandir=#{man}", "--infodir=#{info}"
    system "make install"
  end
  
  def test
    system "#{bin}/texi2html", "--help"
  end
end
4
3
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
4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?