The error is as follows:
==> Downloading http://nginx.org/download/nginx-1.6.2.tar.gz
Already downloaded:/library/caches/homebrew/nginx-1.6.2.tar.gz
==>./configure--prefix=/usr/local/cellar/nginx/1.6.2--with-http_ssl_module--with-pcre--with-ipv6--sbin-path =/usr/local/cel
+ Darwin 14.0.0 x86_64
Checking for C compiler ... not found
./configure:error:c compiler clang is not found
Google, one article mentions, this is because Xcode did not install command line tools caused by, but, I on another machine on the same homebrew installed nginx There is no problem, check the two sides of the Xcode version, Found 6.0.1 have problems, the latest 6.1.1 is OK, so upgraded Xcode, re-run the Brew install Nginx, OK
The above describes the [mac]brew install Nginx, a compilation error? , including the aspects of the content, want to be interested in PHP tutorial friends helpful.