nginx 설치 오류 처리 오류: passing 'ngxsockaddr_t' to parameter of

2418 단어
오늘 nginx 를 설치 할 때 다음 과 같은 문제 가 발생 했 습 니 다.
명령 을 집행 하 다
brew install nginx-full --with-rtmp-module
오류 보고:
cctv-yinyong:~ yinyong$ brew install nginx-full --with-rtmp-module
==> Installing nginx-full from homebrew/nginx
==> Downloading https://nginx.org/download/nginx-1.12.0.tar.gz
Already downloaded: /Users/yinyong/Library/Caches/Homebrew/nginx-full-1.12.0.tar.gz
==> ./configure --prefix=/usr/local/Cellar/nginx-full/1.12.0 --with-http_ssl_mod
==> make install
Last 15 lines from /Users/yinyong/Library/Logs/Homebrew/nginx-full/02.make:
#define ngx_memcmp(s1, s2, n)  memcmp((const char *) s1, (const char *) s2, n)
                                                                        ^~
/usr/local/share/rtmp-nginx-module/ngx_rtmp_core_module.c:568:30: error: passing 'ngx_sockaddr_t' to parameter of incompatible type 'const void *'
    ngx_memcpy(ls->sockaddr, u.sockaddr, u.socklen);
                             ^~~~~~~~~~
src/core/ngx_string.h:102:54: note: expanded from macro 'ngx_memcpy'
#define ngx_memcpy(dst, src, n)   (void) memcpy(dst, src, n)
                                                     ^~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/secure/_string.h:65:33: note: expanded from macro 'memcpy'
  __builtin___memcpy_chk (dest, src, len, __darwin_obsz0 (dest))
                                ^~~
2 errors generated.
make[1]: *** [objs/addon/rtmp-nginx-module/ngx_rtmp_core_module.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [install] Error 2

READ THIS: http://docs.brew.sh/Troubleshooting.html

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/common.rb:155:in `parse': Failed to parse JSON response (GitHub::Error)
399: unexpected token at '{
      "url": "https://api.github.com/repos/Homebrew/homebr

주어진 url 에 연결 하여 도움말 을 찾 으 려 고 시도 합 니 다.http://docs.brew.sh/Troubleshooting.html 이전에 링크 가 하나 더 있 었 는데, 여기에 표시 되 지 않 았 습 니 다. 동봉 합 니 다.https://github.com/sergey-dryabzhinsky/nginx-rtmp-module/issues/234 해결 방법:
가다https://github.com/sergey-dryabzhinsky/nginx-rtmp-module최신 zip 다운로드 하기;압축 해제 2. 압축 해제 파일 을 / usr / local / share / rtmp - nginx - module / 경로 에 있 는 파일 로 교체 합 니 다.3. 터미널 에 명령 brew install nginx - full -- with - rtmp - module 문 제 를 다시 입력 합 니 다.

좋은 웹페이지 즐겨찾기