- 在安装时碰到了一次奇怪的错误,报了一堆匪夷所思的错误,折腾了一下午才解决,特此记录
These open issues may also help:
building nginx-full with healthcheck module giving
error https://github.com/Homebrew/homebrew-nginx/issues/263
1.找到本地下载的homebrew源码
open /usr/local/Homebrew/Library/Taps/homebrew/homebrew-nginx/Formula/
找到rtmp-nginx-module.rb文件打开
2.在github,homebrew找到了源码
https://github.com/Homebrew/homebrew-nginx/blob/master/Formula/rtmp-nginx-module.rb
对比发现是该模块的版本不一致问题,
本地是1.1.7.10,而github已经是1.1.7.11
修改文件代码如下
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了