[root@localhost nginx-1.3.14] /usr/local/nginx/sbin/nginx -V
[root@localhost nginx-1.3.14]# ./configure --prefix=/usr/local/nginx --user=www --group=www --add-module=/usr/src/ngx_cache_purge-2.0 --with-http_stub_status_module –with-http_ssl_module
[root@localhost nginx-1.3.14]# make
make[1]: *** [objs/addon/ngx_cache_purge-1.2/ngx_cache_purge_module.o] Error 1 make[1]: Leaving directory `/root/nginx-1.0.5' make: *** [build] Error 2
則是由於nginx版本的問題。我之前用的是比較新的nginx1.2版本, 結果總是出現上述Error信息,於是更換回舊版本之後Error消失。
[root@localhost nginx-1.3.14]# mv /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.bak
[root@localhost nginx-1.3.14]# cp objs/nginx /usr/local/nginx/sbin/nginx
[root@localhost nginx-1.3.14]# make upgrade