军哥大人进来瞧一下
服务器安了最新的1.0LNMP,之前出了各种问题,但是都一一解决了,现在想增加一个NGINX 的h264模块,但是老报错,你老人家给我看看呢。。cd /root/lnmp1.0-full
wgethttp://h264.code-shop.com/downlo ... eaming-2.2.7.tar.gz
tar -zxvf nginx_mod_h264_streaming-2.2.7.tar.gz
cd nginx-1.4.1
./configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --with-ipv6 --add-module=/root/lnmp1.0-full/nginx_mod_h264_streaming-2.2.7
接着就爆了错误,求看看~
后面我就不敢编译起走了~~求给个完整的安装方法哇~~
[ 本帖最后由 jalena 于 2013-7-1 15:48 编辑 ] error: ‘ngx_http_request_t’ has no member named ‘zero_in_uri’
这个错误是因为新版nginx中废弃了zero_in_uri这个flag
解决方法:编辑 nginx_mod_h264_streaming-2.2.7/src/ngx_http_streaming_module.c
158到161行注释掉或直接删掉,注释或删掉的内容如下:
if (r->zero_in_uri)
{
return NGX_DECLINED;
}
再编译看看
回复 2# 的帖子
编译ok了,这样就算成功了撒# nginx -V
nginx version: nginx/1.4.1
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC)
TLS SNI support enabled
configure arguments: --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --with-ipv6 --add-module=/root/lnmp1.0-full/nginx_mod_h264_streaming-2.2.7
回复 3# 的帖子
嗯
页:
[1]