Incorrect URL for PCRE 2.7 in passenger-install-nginx-module

43 views
Skip to first unread message

Chris Kampmeier

unread,
Jan 7, 2010, 2:59:53 AM1/7/10
to Phusion Passenger Discussions
Cross-posting a new issue here since it seems important: the nginx
installer is always skipping the rewrite module for users who don't
already have PCRE installed, because the URL it uses to download PCRE
is newly broken.

http://code.google.com/p/phusion-passenger/issues/detail?id=449

Summary:

The passenger-install-nginx-module script is hardcoded to download
PCRE from
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-7.8.tar.gz,
which does not exist. Only 7.9 and 8.0 are in that directory.

Users trying to use rewrite rules but using an nginx without the
rewrite module will probably see errors like:
unknown directive "set" in /path/to/server.conf:10
unknown directive "if" in /path/to/server.conf:10

Hope this helps!
Chris Kampmeier

Trevor Turk

unread,
Feb 16, 2010, 1:41:04 PM2/16/10
to Phusion Passenger Discussions
On Jan 7, 1:59 am, Chris Kampmeier <ch...@kampers.net> wrote:
> Cross-posting a new issue here since it seems important: the nginx
> installer is always skipping therewritemodule for users who don't
> already havePCREinstalled, because the URL it uses to downloadPCRE
> is newly broken.

I'm looking forward to the next release of Passenger, because this
problem has given me some grief. I'm still trying to figure out how to
work around it.

For other hopeful googlers, I have the following error messages:

Starting nginx: [emerg]: without PCRE library "gzip_disable" supports
builtin "msie6" mask only in /opt/nginx/conf/nginx.conf:28

...and if I remove that, I have:

Starting nginx: [emerg]: unknown directive "rewrite" in /opt/nginx/
conf/nginx.conf:43

I believe the solution will be to install PCRE with apt-get and tell
Passenger where PCRE can be found. I'll post back here if/when I
figure it out, but any help would certainly be appreciated.

Thanks,
- Trevor

Trevor Turk

unread,
Feb 16, 2010, 1:42:27 PM2/16/10
to Phusion Passenger Discussions
On Feb 16, 12:41 pm, Trevor Turk <trevort...@gmail.com> wrote:
> I'm looking forward to the next release of Passenger, because this
> problem has given me some grief. I'm still trying to figure out how to
> work around it.
>
> I believe the solution will be to installPCREwith apt-get and tell
> Passenger wherePCREcan be found. I'll post back here if/when I

> figure it out, but any help would certainly be appreciated.

Ah, my mistake - Passenger gem has been updated. I was looking at the
wrong machine! ;)

Thank you!
- Trevor

Reply all
Reply to author
Forward
0 new messages