美文网首页iOS Developer
Nginx-rtmp-module一次奇怪的错误

Nginx-rtmp-module一次奇怪的错误

作者: cornerAnt | 来源:发表于2017-04-18 20:20 被阅读91次
Paste_Image.png

1.找到本地下载的homebrew源码

open /usr/local/Homebrew/Library/Taps/homebrew/homebrew-nginx/Formula/

找到rtmp-nginx-module.rb文件打开

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了

相关文章

网友评论

    本文标题:Nginx-rtmp-module一次奇怪的错误

    本文链接:https://www.haomeiwen.com/subject/zzfkdttx.html