Nginx broken after upgrade to osx yosemite

Arun picture Arun · Oct 19, 2014 · Viewed 9.4k times · Source

Nginx was working fine on Mavericks, and now after I upgraded to Yosemite its displaying nginx command not found , I tried to install nginx with brew install nginx and it displays an error

Error: You must brew link pcre before nginx can be installed

And brew link pcre displays

Linking /usr/local/Cellar/pcre/8.35... Error: No such file or directory - /usr/local/Cellar/pcre/8.34/share/doc/pcre

Its trying to link 8.34. I reinstalled still its same, How do i solve it?

Answer

Dwight Rodriques picture Dwight Rodriques · Oct 19, 2014

I had the same problem, that is, after upgrading from Mavericks to Yosemite I got the following error: nginx: [emerg] mkdir() "/usr/local/var/run/nginx/client_body_temp" failed (2: No such file or directory)

All I needed to do to solve this issue was to create the folder:

mkdir -p /usr/local/var/run/nginx/client_body_temp