[Mac]brew install Nginx, what happens to compile errors?

Source: Internet
Author: User

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



[Mac]brew install Nginx, what happens to compile errors?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.