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?
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