I needed to comment out a line inside BARRACUDA.sh script, if I didn't it wouldn't compile
2684 sed -i "s/nginx/Barracuda/g" /var/opt/nginx-$_NGINX_VERSION/src/core/nginx.h

Related: #1048000: nginx support

Comments

omega8cc’s picture

We have tested it before many times and this line never broke Nginx build. Weird..

attiks’s picture

This is what I did after I downloaded the latest version:

git clone git://github.com/FRiCKLE/ngx_cache_purge.git
cd ngx_cache_purge/
git checkout 1.4
cd ..
_NGINX_EXTRA_CONF=" --add-module=/root/BARRACUDA/ngx_cache_purge/ "
comment out line 2684

bash BARRACUDA.sh.txt

If I did the same without putting the line inside a comment I got compile errors

omega8cc’s picture

Category: bug » support

It should work without issues when you will change _TEST_MODE=OFF to _TEST_MODE=ON - it will compile ngx_cache_purge automatically. You don't need to add it in _NGINX_EXTRA_CONF . This _TEST_MODE=ON flag has been added exactly for this purpose.

attiks’s picture

Status: Active » Closed (fixed)

Didn't think TEST_MODE was only for cache_purge, tried it just now and it's working as well.

Thanks!