Code for Concinnity


Install Passenger nginx on OS X with Homebrew

A clean and hack-less way to do it.

If you got the Undefined symbols for architecture x86_64: "_pcre_free_study", this is for you:

# Let Homebrew install the required dependencies
$ brew install nginx
 
# Remove it because we're using Passenger's ngnix
$ brew uninstall nginx
 
$ sudo mkdir -p /opt/nginx
$ sudo chown -R $(whoami):admin /opt/nginx
 
$ LIBRARY_PATH=/usr/local/lib CC=gcc passenger-install-nginx-module
 
# Done!
Published by kizzx2, on September 18th, 2012 at 3:20 pm. Filled under: UncategorizedNo Comments

No comments yet.

Leave a Reply