- 在安裝時碰到了一次奇怪的錯誤,報了一堆匪夷所思的錯誤,折騰了一下午才解決,特此記錄
These open issues may also help:
building nginx-full with healthcheck module giving
error https://github.com/Homebrew/homebrew-nginx/issues/263
Paste_Image.png
1.找到本地下載的homebrew源碼
open /usr/local/Homebrew/Library/Taps/homebrew/homebrew-nginx/Formula/
找到rtmp-nginx-module.rb文件打開
Paste_Image.png
Paste_Image.png
2.在github,homebrew找到了源碼
https://github.com/Homebrew/homebrew-nginx/blob/master/Formula/rtmp-nginx-module.rb
Paste_Image.png
對比發現是該模塊的版本不一致問題,
本地是1.1.7.10,而github已經是1.1.7.11
Paste_Image.png
修改文件代碼如下
Paste_Image.png
class RtmpNginxModule < Formula
desc "NGINX-based Media Streaming Server"
homepage "https://github.com/sergey-dryabzhinsky/nginx-rtmp-module"
url "https://github.com/sergey-dryabzhinsky/nginx-rtmp-module/archive/v1.1.7.10.tar.gz"
sha256 "0b32d34704d038485d93656dc43e970bbdd9c63bca7ff3b81ad941cde9144fc6"
version "1.1.7.11-dev"
patch do
url "https://github.com/sergey-dryabzhinsky/nginx-rtmp-module/compare/v1.1.7.10...542106e.diff"
sha256 "4bce367978d8dc2896432bc517f642626cc006256052957df37b94a6c9eb024b"
end
bottle :unneeded
def install
pkgshare.install Dir["*"]
end
end
這樣可以愉快的安裝nginx-rtmp-module了