这是一个创建于 4378 天前的主题,其中的信息可能已经有所发展或是发生改变。
在http://wiki.nginx.org/NginxChsCachePurge下载的,nginx版本1.2.5
./configure --user=www --group=www --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --pid-path=/var/run/nginx.pid --conf-path=/etc/nginx/nginx.conf --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --with-ipv6 --with-pcre=../pcre-8.31 --with-http_sub_module --add-module=../substitutions4nginx-read-only --add-module=../ngx_cache_purge-1.2
编译出错:
src/http/modules/ngx_http_stub_status_module.c
gcc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../pcre-8.31 -I objs -I src/http -I src/http/modules -I src/mail \
-o objs/addon/substitutions4nginx-read-only/ngx_http_subs_filter_module.o \
../substitutions4nginx-read-only/ngx_http_subs_filter_module.c
gcc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../pcre-8.31 -I objs -I src/http -I src/http/modules -I src/mail \
-o objs/addon/ngx_cache_purge-1.2/ngx_cache_purge_module.o \
../ngx_cache_purge-1.2/ngx_cache_purge_module.c
../ngx_cache_purge-1.2/ngx_cache_purge_module.c: In function 'ngx_http_file_cache_purge':
../ngx_cache_purge-1.2/ngx_cache_purge_module.c:681: error: 'ngx_http_file_cache_node_t' has no member named 'length'
make[1]: *** [objs/addon/ngx_cache_purge-1.2/ngx_cache_purge_module.o] Error 1
make[1]: Leaving directory `/root/nginx-1.2.5'
make: *** [build] Error 2
- -这是什么原因呢
3 条回复 • 1970-01-01 08:00:00 +08:00
|
|
2
jylee 2012-12-02 15:36:35 +08:00
@ 11138 - -ok了,我以为wiki首页是最新版。。。
|