# Trouble building nginx from dotdeb

**URL:** <https://www.ruby-forum.com/t/trouble-building-nginx-from-dotdeb/236245>\
**Category:** NGINX\
**Created:** [August 18, 2013, 9:47am UTC](https://www.ruby-forum.com/t/trouble-building-nginx-from-dotdeb/236245 "2013-08-18T09:47:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [August 18, 2013, 9:47am UTC](https://www.ruby-forum.com/t/trouble-building-nginx-from-dotdeb/236245/1 "2013-08-18T09:47:37Z")

</div>

I’m trying to follow this tutorial:

> **[Using ngx\_pagespeed With nginx On Debian Wheezy](https://www.howtoforge.com/using-ngx_pagespeed-with-nginx-on-debian-wheezy)**
>
> Google has just released PageSpeed Beta for nginx, the nginx 
> equivalent of mod\_pagespeed for Apache. This module applies web  
> performance best pra...

to  
build nginx with ngx\_pagespeed on a Debian Wheezy machine. Unfortunately  
so  
far I have been using nginx from dotdeb so I’m trying to use their  
sources.

The error occurs when building:

debuild -us -uc  
.  
.  
.  
make: \*\*\* [config.status.full] Error 1  
dpkg-buildpackage: error: debian/rules build gave error exit status 2  
debuild: fatal error at line 1357:  
dpkg-buildpackage -rfakeroot -D -us -uc failed

the rules file has only 319 lines though and ends with:

.PHONY: build clean binary-indep binary-arch binary install

so I’m not sure what the exact problem is. Any hints how to further  
diagnose  
this error?

Posted at Nginx Forum:

> **[trouble building nginx from dotdeb](https://forum.nginx.org/read.php?2,241972,241972#msg-241972)**
>
> I'm trying to follow this tutorial: http://www.howtoforge.com/using-ngx\_pagespeed-with-nginx-on-debian-wheezy to build nginx with ngx\_pagespeed on a Debian Wheezy machine. Unfortunately so far I have been using nginx from dotdeb so I'm trying to use...

---

<div class="post-metadata">

**Author:** ![ovidiu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/bb73d2/32.png) [@ovidiu](https://www.ruby-forum.com/u/ovidiu)\
**Post date:** [August 18, 2013, 9:52am UTC](https://www.ruby-forum.com/t/trouble-building-nginx-from-dotdeb/236245/2 "2013-08-18T09:52:53Z")

</div>

Use the official instructions from  
[GitHub - apache/incubator-pagespeed-ngx: Automatic PageSpeed optimization module for Nginx](https://github.com/pagespeed/ngx_pagespeed) and you’ll have no problems.  
Well, I haven’t upgraded from 1.4.1 yet, but that works fine.

Steve

---

<div class="post-metadata">

**Author:** ![ovidiu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/bb73d2/32.png) [@ovidiu](https://www.ruby-forum.com/u/ovidiu)\
**Post date:** [August 18, 2013, 9:59am UTC](https://www.ruby-forum.com/t/trouble-building-nginx-from-dotdeb/236245/3 "2013-08-18T09:59:54Z")

</div>

Thanks, I knew about those instructions but I was trying to “build it  
hte  
Debian way” ☹  
Found this page with some more instructions/hints:  
[Packaging/Intro - Debian Wiki](http://wiki.debian.org/IntroDebianPackaging) but no luck.

So I guess if nobody can help me do it this way, in a few days I’ll give  
it  
a try with the instructions you linked to.

Posted at Nginx Forum:

> **[Re: trouble building nginx from dotdeb](https://forum.nginx.org/read.php?2,241972,241974#msg-241974)**
>
> I'm trying to follow this tutorial: http://www.howtoforge.com/using-ngx\_pagespeed-with-nginx-on-debian-wheezy to build nginx with ngx\_pagespeed on a Debian Wheezy machine. Unfortunately so far I have been using nginx from dotdeb so I'm trying to use...
