Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nginx broken after upgrade to osx yosemite

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?

like image 785
Arun Avatar asked Oct 19 '14 11:10

Arun


1 Answers

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 
like image 119
Dwight Rodriques Avatar answered Oct 03 '22 01:10

Dwight Rodriques