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!