# Problems with building nginx 1.9.11 ( with pagespeed )

**URL:** <https://www.ruby-forum.com/t/problems-with-building-nginx-1-9-11-with-pagespeed/244052>\
**Category:** NGINX\
**Created:** [February 12, 2016, 12:05am UTC](https://www.ruby-forum.com/t/problems-with-building-nginx-1-9-11-with-pagespeed/244052 "2016-02-12T00:05:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafa\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Post date:** [February 12, 2016, 12:05am UTC](https://www.ruby-forum.com/t/problems-with-building-nginx-1-9-11-with-pagespeed/244052/1 "2016-02-12T00:05:15Z")

</div>

Server debian jessie, and I’m using the same build script ( which does  
include 3rd party stuff ) a 1.9.10 which built flawlessly…

To get it to build at all, I had to add the option ’ -Wno-write-strings’  
to the CFLAGS in objs/Makefile, and the resultant executable resulted in  
the current config showing up

[emerg] 27021#0: unknown directive “gzip” in /etc/nginx/nginx.conf

reverting to 1.9.10 runs fine.

config is as follows:

./configure --prefix=/etc/nginx   
–sbin-path=/usr/sbin/nginx   
–conf-path=/etc/nginx/nginx.conf   
–error-log-path=/var/log/nginx/error.log   
–http-log-path=/var/log/nginx/access.log   
–pid-path=/var/run/nginx.pid   
–lock-path=/var/run/nginx.lock   
–http-client-body-temp-path=/var/cache/nginx/client\_temp   
–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   
–user=nginx   
–group=nginx   
–with-ipv6   
–with-http\_ssl\_module   
–with-http\_v2\_module   
–with-http\_realip\_module   
–with-http\_addition\_module   
–with-http\_sub\_module   
–with-http\_gunzip\_module   
–with-http\_gzip\_static\_module   
–with-http\_random\_index\_module   
–with-http\_secure\_link\_module   
–with-http\_stub\_status\_module   
–with-http\_geoip\_module   
–with-mail   
–with-mail\_ssl\_module   
–with-file-aio   
–with-openssl=/usr/local/src/openssl-1.0.2f   
–add-module=…/echo-nginx-module   
–add-module=…/ngx\_pagespeed-release-1.10.33.4-beta   
'–with-cc-opt=-O2 -g -pipe -Wall -Wp,-D\_FORTIFY\_SOURCE=2 -fexceptions  
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic ’

–  
Steve H. BSc(Hons) MIITP

> **[Linux & Admin Support Services | "Services provided by people who are...](https://www.greengecko.co.nz/)**
>
> Offers linux support services, systems and database administration, consultancy and the full development lifecycle for open source - based solutions

Linkedin: [http://www.linkedin.com/in/steveholdoway](http://www.linkedin.com/in/steveholdoway)  
Skype: sholdowa

---

<div class="post-metadata">

**Author:** ![steve](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f19dbf/32.png) [@steve](https://www.ruby-forum.com/u/steve)\
**Post date:** [February 12, 2016, 12:06am UTC](https://www.ruby-forum.com/t/problems-with-building-nginx-1-9-11-with-pagespeed/244052/2 "2016-02-12T00:06:25Z")

</div>

Sorry!

On 02/12/2016 12:04 PM, steve wrote:

> Server debian jessie, and I’m using the same build script ( which does  
> include 3rd party stuff ) a 1.9.10 which built flawlessly…
> 
> To get it to build at all, I had to add the option ’  
> -Wno-write-strings’ to the CFLAGS in objs/Makefile, and the resultant  
> executable resulted in the current config showing up
> 
> [emerg] 27021#0: unknown directive “gzip” in /etc/nginx/nginx.conf

Just read the rest of the list.

–  
Steve H. BSc(Hons) MIITP

> **[Linux & Admin Support Services | "Services provided by people who are proud...](https://www.greengecko.co.nz/)**
>
> Offers linux support services, systems and database administration, consultancy and the full development lifecycle for open source - based solutions

Linkedin: [Steve Holdoway - Robotron New Zealand Limited | LinkedIn](http://www.linkedin.com/in/steveholdoway)  
Skype: sholdowa
