nginx on Solaris

March 14, 2007

We’re continuing our evaluation of TextDrive / Joyent Accelerators, and things are going well. Tech support is responsive to my odd requests, the forums are lively, and the system itself is quite speedy.

Tonight we’re installing nginx as the load balancing proxy for our Rails applications. It’s been personally recommended to us several times, battle tested by a few independent folks who are into these sorts of things, and received a lot of good press in the Rails community — and it’s mysteriously Russian. So, we’re quite interested to take it for a spin on our Accelerator.

First, there isn’t a Blastwave package for nginx, so we built from the tarball (which requires the PCRE sources). It’s a pretty simple, although it took some troubleshooting. The snag was that the PCRE build used tools that weren’t in my default $PATH, but were in /usr/ccs/bin.

So:

$ export PATH=$PATH:/usr/ccs/bin

… and then we’re off to the races:

$ wget http://sysoev.ru/nginx/nginx-x.x.x.tar.gz
$ wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-x.x.tar.gz
$ gtar zxf nginx-x.x.x.tar.gz pcre-x.x.tar.gz
$ cd nginx-x.x.x
$ ./configure --prefix=/opt/nginx --with-pcre=../pcre-x.x
$ make
$ sudo make install

PS: Rails 1.2.3 was released today. And, happy birthday, Mom!

3 Responses to “nginx on Solaris”


  1. Hi Peat, Have you tried the –with-pcre= flag on configure to where nginx should pick up the pcre library from?

  2. Peat Says:

    Hey Jason. I’ve wrangled the –with-pcre= flag, but it’s PCRE that’s dying in the build process.

    With a slightly fresher mind today, I found the root of the problem — my $PATH didn’t include /usr/ccs/bin so the build of PCRE wasn’t finding a couple of tools.

    I’ll update my post to reflect the changes.


  3. […] 0.5.14 — Built from scratch, and running the generic Rails/Mongrel configuration found on the […]


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: