5

是否可以通过 brew 安装 ffmpeg?

冲泡安装ffmpeg

Warning: A newer Command Line Tools for Xcode release is available
You should install the latest version from: http://connect.apple.com
==> Installing ffmpeg dependency: texi2html
==> Downloading http://download.savannah.gnu.org/releases/texi2html/texi2html-1.82.tar.gz 
######################################################################## 100.0%
curl: (6) Could not resolve host: mirror.yongbok.net; nodename nor servname provided, or not known 
Error: Download failed: http://download.savannah.gnu.org/releases/texi2html/texi2html-1.82.tar.gz

酿造安装texi2html

Warning: A newer Command Line Tools for Xcode release is available
You should install the latest version from: http://connect.apple.com
 ==> Downloading http://download.savannah.gnu.org/releases/texi2html/texi2html-1.82.tar.gz 
######################################################################## 100.0%
curl: (6) Could not resolve host: mirror.yongbok.net; nodename nor servname provided, or not known
Error: Download failed: http://download.savannah.gnu.org/releases/texi2html/texi2html-1.82.tar.gz
4

2 回答 2

7

1) 搜索工作镜像http://www.filewatcher.com/m/texi2html-1.82.tar.gz.7350232-0.html => 例如ftp://ftp.mirrorservice.org/sites/distfiles.macports。 org/texi2html/texi2html-1.82.tar.gz

2) 将此路径放在 /usr/local/Library/Formula/texi2html.rb 中的 url 标签

3) 计算 texi2html-1.82.tar.gz (其 e7bbe1197147566250abd5c456b94c8e37e0a81f) 的 shasum 并将其放在 /usr/local/Library/Formula/texi2html.rb 的 sha1 标记中

现在 brew install ffmpeg 工作正常

于 2013-02-09T11:00:56.150 回答
0

是的,很有帮助,很棒

vi /usr/local/Library/Formula/texi2html.rb

class Texi2html < Formula desc "Convert TeXinfo files to HTML" homepage "http://www.nongnu.org/texi2html/" url "ftp://ftp.gnome.org/mirror/gnu.org/savannah/texi2html/texi2html-1.82.tar.gz" sha256 "6c7c94a2d88ffe218a33e91118c2b039336cbe3f2f8b4e3a78e4fd1502072936"

于 2016-12-19T05:49:57.393 回答