全球主机交流论坛

标题: 编译错误,求解? [打印本页]

作者: jsjfans    时间: 2012-7-12 15:11
标题: 编译错误,求解?
本帖最后由 jsjfans 于 2012-7-12 15:40 编辑
  1.                 -o objs/addon/ngx_cache_purge-1.0/ngx_cache_purge_module.o \
  2.                 ../ngx_cache_purge-1.0/ngx_cache_purge_module.c
  3. ../ngx_cache_purge-1.0/ngx_cache_purge_module.c: In function ‘ngx_http_file_cache_purge’:
  4. ../ngx_cache_purge-1.0/ngx_cache_purge_module.c:449: error: ‘ngx_http_file_cache_node_t’ has no member named ‘length’
  5. make[1]: *** [objs/addon/ngx_cache_purge-1.0/ngx_cache_purge_module.o] Error 1
  6. make[1]: Leaving directory `/root/lnmp0.9-full/nginx-1.0.15'
  7. make: *** [build] Error 2
复制代码
在编译ngx_cache_purge模块时候报错
代码如上 ,请问是什么原因 系统debian6.0 32位 环境军哥lnmp0.9
作者: wdlth    时间: 2012-7-12 15:36
本帖最后由 wdlth 于 2012-7-12 15:39 编辑

版本太旧了
http://labs.frickle.com/nginx_ngx_cache_purge/
作者: jsjfans    时间: 2012-7-12 15:37
谢谢楼主 刚才找了个1.16版本 编译了 没问题了 ~!
作者: Kokgog    时间: 2012-7-12 15:40
我告诉大家一个秘密......

debian 6.0官方backports源里的nginx是1.2.1....而且里面已经编译好了nginx-cache-purge.......
作者: jsjfans    时间: 2012-7-12 15:42
Kokgog 发表于 2012-7-12 15:40
我告诉大家一个秘密......

debian 6.0官方backports源里的nginx是1.2.1....而且里面已经编译好了nginx-cac ...

是吗 你早点来多好 让我编译了那么多 虽然问题解决了 还是你这个方便 你说的那个backports源地址是什么 我试试
作者: 360安全卫士    时间: 2012-7-12 15:44

作者: johnnyfu829    时间: 2012-7-12 15:48
用debian还编译个JJ
作者: Kokgog    时间: 2012-7-12 15:48
jsjfans 发表于 2012-7-12 15:42
是吗 你早点来多好 让我编译了那么多 虽然问题解决了 还是你这个方便 你说的那个backports源地址是什么  ...


deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free
deb-src http://backports.debian.org/debian-backports squeeze-backports main contrib non-free

加到/etc/apt/sources.list 里面

用root或者sudo执行

aptitude update
aptitude -t squeeze-backports install nginx-extras

接着,就装好了....

配置文件在/etc/nginx目录下面

站点文件在 /etc/nginx/sites-available/ 下面, 复制默认的default

要开启站点就 ln -s /etc/nginx/sites-available/sitename /etc/nginx/sites-enabled/sitename  (sitename自己取)

要关闭站点就 rm /etc/nginx/sites-enabled/sitename

修改完执行/etc/init.d/nginx reload生效
作者: xen    时间: 2012-7-12 15:57
Kokgog 发表于 2012-7-12 15:48

deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free
deb-sr ...

mark
作者: lazyzhu    时间: 2012-7-12 16:03
xen 发表于 2012-7-12 15:57
mark

apt-get -t squeeze-backports install nginx
更方便





欢迎光临 全球主机交流论坛 (https://lilynana.eu.org/) Powered by Discuz! X3.4