Recompiling Nginx 1.4.3 with "--with-http_gzip_static_module" error

Posted by Elijah Paul on Server Fault See other posts from Server Fault or by Elijah Paul
Published on 2013-11-02T12:43:47Z Indexed on 2013/11/02 15:54 UTC
Read the original article Hit count: 485

Filed under:
|
|
|

I'm trying to enable the 'ngx_http_gzip_static_module' module in Nginx 1.4.3 by adding the --with-http_gzip_static_module to my ./configure configuration.

But I recieve the following error when i try to recompile (make):

# make
make -f objs/Makefile
make[1]: Entering directory `/tmp/nginx-1.4.3'
make[1]: *** No rule to make target `src/os/unix/ngx_gcc_atomic_x86.h', needed by `objs/src/core/nginx.o'.  Stop.
make[1]: Leaving directory `/tmp/nginx-1.4.3'
make: *** [build] Error 2

My current config (CentOS 6.4):

# nginx -V
nginx version: nginx/1.4.3
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC)
TLS SNI support enabled
configure arguments: --conf-path=/etc/nginx/nginx.conf --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx/error.log --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --http-log-path=/var/log/nginx/access.log --with-http_ssl_module --prefix=/usr --add-module=./nginx-sticky-module-1.1 --add-module=./headers-more-nginx-module-0.23

i was under the impression that this was a module that just need to be 'enabled' as opposed to 'added'.

What am I missing here?

© Server Fault or respective owner

Related posts about nginx

Related posts about configuration