nginx 설치 오류 처리 오류: passing 'ngxsockaddr_t' to parameter of
명령 을 집행 하 다
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 문 제 를 다시 입력 합 니 다.
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
다양한 언어의 JSONJSON은 Javascript 표기법을 사용하여 데이터 구조를 레이아웃하는 데이터 형식입니다. 그러나 Javascript가 코드에서 이러한 구조를 나타낼 수 있는 유일한 언어는 아닙니다. 저는 일반적으로 '객체'{}...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.