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:
1 2 3 4 5 6 7 8 9 10 11 12 | # 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! |
You can also pass these parameters to the configure script of “passenger-install-nginx-module”
–with-pcre –with-ld-opt=-L/usr/local/lib
This assumes you have the pcre libs installed, of course. If you install via homebrew, they’re symlinked so that /usr/local/lib will work
Comment by Andy on November 13, 2012 at 2:51 am