Using PCRE 8.20 with Nginx 1.0.11 and Passenger

view full story

http://serverfault.com – I downloaded and extracted the nginx source to ~/nginx-1.0.11, then downloaded PCRE 8.20 directly since the latest version of the Passenger installer can't download it automatically. I did the typical ./configure, make, sudo make install for PCRE which put it in /usr/local/lib by default. So far so good. Using passenger-install-nginx-module and specifying the source directory as /home/username/nginx-1.0.11 worked just fine. When I ran a syntax check with /opt/nginx/sbin/nginx -t I was informed that libpcre.so.0 could not be located. I ran ldd against nginx and got the following: linux-vdso.s (HowTos)